
;
;
;     Model statements for module:  Create 9
;

416$          CREATE,        1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(24):NEXT(417$);

417$          ASSIGN:        Create 9.NumberOut=Create 9.NumberOut + 1:NEXT(87$);


;
;
;     Model statements for module:  Assign 64
;
87$           ASSIGN:        day=day+1:NEXT(88$);


;
;
;     Model statements for module:  Dispose 17
;
88$           ASSIGN:        Dispose 17.NumberOut=Dispose 17.NumberOut + 1;
420$          DISPOSE:       Yes;


115$          CREATE,        1,TFIN:,1:NEXT(116$);

116$          WRITE,         rqueueoutput:
                             
                             tavg(time in receiptq at d1),tavg(time in receiptq at d2),davg(statistic 1),davg(statistic 2),davg(statistic 3),dmax(statistic 1), dmax(statistic 2),dmax(statistic 3),davg(statistic 4),davg(statistic 5),davg(statistic 6),dmax(statistic 4),dmax(statistic 5),dmax(statistic 6),davg(statistic 7),dmax(statistic 7),davg(statistic 8),dmax(statistic 8);
117$          DISPOSE:       No;


124$          CREATE,        1,TFIN:,1:NEXT(125$);

125$          WRITE,         rtimeinsystem:
                             
                             tavg(time in system from d1), tavg(time in system from d2),tavg(time for putaway from d1),tavg(time for putaway from d2);
126$          DISPOSE:       No;


129$          CREATE,        1,TFIN::NEXT(130$);

130$          WRITE,         utilizationf1:
                             FSTAND(forklift1,1),FSTAND(forklift1,2),FSTAND(forklift1,4);
131$          DISPOSE:       No;


132$          CREATE,        1,TFIN::NEXT(133$);

133$          WRITE,         utilizationf2:
                             FSTAND(forklift2,1),FSTAND(forklift2,2),FSTAND(forklift2,4);
134$          DISPOSE:       No;


135$          CREATE,        1,TFIN::NEXT(136$);

136$          WRITE,         utilizationf5:
                             FSTAND(forklift5,1),FSTAND(forklift5,2),FSTAND(forklift5,4);
137$          DISPOSE:       No;


138$          CREATE,        1,TFIN::NEXT(139$);

139$          WRITE,         utilizationf6:
                             FSTAND(forklift6,1),FSTAND(forklift6,2),FSTAND(forklift6,4);
140$          DISPOSE:       No;


141$          CREATE,        1,TFIN::NEXT(142$);

142$          WRITE,         utilizationd1:
                             FSTAND(dock 1,1),FSTAND(dock 1,2),FSTAND(dock 1,4);
143$          DISPOSE:       No;


144$          CREATE,        1,TFIN::NEXT(145$);

145$          WRITE,         utilizationd2:
                             FSTAND(dock 2,1),FSTAND(dock 2,2),FSTAND(dock 2,4);
146$          DISPOSE:       No;


158$          CREATE,        1,TFIN:,1:NEXT(159$);

159$          WRITE,         squeueoutput:
                             
                             tavg(time in shipmentq at d1),tavg(time in shipmentq at d2),nc(dispatchatruck),nc(dispatchbtruck),nc(dispatchctruck),nc(receiptatruck),nc(receiptbtruck),nc(receiptctruck),nc(#runaway),tavg(time for pickup to d1),tavg(time for pickup to d2),tavg(time for loading at d1),tavg(time for loading at d2);
160$          DISPOSE:       No;


165$          CREATE,        1,TFIN:,1:NEXT(166$);

166$          WRITE,         stimeinsystem:
                             
                             tavg(time in system from d1 for shipment),nc(# of trucks that are in system  more than 60 minutes from d1),nc(#of trucks that are from d1),tavg(time in system from d2 for shipment),nc(# of trucks that are in system  more than 60 minutes from d2),nc(#of trucks that are from d2),nc(# of trucks that are in system  more than 45 minutes from d1),nc(# of trucks that are in system  more than 45 minutes from d2);
167$          DISPOSE:       No;


;
;
;     Model statements for module:  Create 4
;

421$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c1:MinutesToBaseTime(1440):NEXT(422$);

422$          ASSIGN:        Create for receiving b shift1 c1.NumberOut=Create for receiving b shift1 c1.NumberOut + 1
                             :NEXT(243$);


;
;
;     Model statements for module:  Decide 98
;
243$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),425$,Yes:
                             Else,426$,Yes;
425$          ASSIGN:        Decide 98.NumberOut True=Decide 98.NumberOut True + 1:NEXT(321$);

426$          ASSIGN:        Decide 98.NumberOut False=Decide 98.NumberOut False + 1:NEXT(244$);


;
;
;     Model statements for module:  Assign 198
;
321$          ASSIGN:        receiptb1# c1=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,67)
                             :NEXT(245$);


;
;
;     Model statements for module:  Decide 99
;
245$          BRANCH,        1:
                             If,receiptb1# c1==0,235$,Yes:
                             If,receiptb1# c1==1,246$,Yes:
                             Else,247$,Yes;

;
;
;     Model statements for module:  Separate 5
;
247$          DUPLICATE,     100 - 50:
                             receiptb1# c1-1,431$,50:NEXT(430$);

430$          ASSIGN:        Separate 5.NumberOut Orig=Separate 5.NumberOut Orig + 1:NEXT(246$);

431$          ASSIGN:        Separate 5.NumberOut Dup=Separate 5.NumberOut Dup + 1:NEXT(246$);


;
;
;     Model statements for module:  Process 10
;
246$          ASSIGN:        Process 10.NumberIn=Process 10.NumberIn + 1:
                             Process 10.WIP=Process 10.WIP+1;
461$          STACK,         1:Save:NEXT(435$);

435$          QUEUE,         Process 10.Queue;
434$          SEIZE,         2,VA:
                             Resource 4_1,1:NEXT(433$);

433$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c1,3)),,VA:NEXT(476$);

476$          ASSIGN:        Process 10.WaitTime=Process 10.WaitTime + Diff.WaitTime;
440$          TALLY:         Process 10.WaitTimePerEntity,Diff.WaitTime,1;
442$          TALLY:         Process 10.TotalTimePerEntity,Diff.StartTime,1;
466$          ASSIGN:        Process 10.VATime=Process 10.VATime + Diff.VATime;
467$          TALLY:         Process 10.VATimePerEntity,Diff.VATime,1;
432$          RELEASE:       Resource 4_1,1;
481$          STACK,         1:Destroy:NEXT(480$);

480$          ASSIGN:        Process 10.NumberOut=Process 10.NumberOut + 1:
                             Process 10.WIP=Process 10.WIP-1:NEXT(231$);


;
;
;     Model statements for module:  Assign 57
;
231$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Decide 121
;
119$          BRANCH,        1:
                             If,producttype==1,118$,Yes:
                             If,producttype==2,120$,Yes:
                             Else,121$,Yes;
121$          COUNT:         receiptctruck,1:NEXT(112$);


;
;
;     Model statements for module:  Assign 78
;
112$          ASSIGN:        receiptqenter=tnow:NEXT(110$);

110$          QUEUE,         receiptdockqueue;
100$          SEIZE,         2,Other:
                             SELECT(Docks,LRC,index),1:NEXT(101$);


;
;
;     Model statements for module:  Decide 116
;
101$          BRANCH,        1:
                             If,docks(index)==dock1,485$,Yes:
                             Else,486$,Yes;
485$          ASSIGN:        Decide 116.NumberOut True=Decide 116.NumberOut True + 1:NEXT(113$);

486$          ASSIGN:        Decide 116.NumberOut False=Decide 116.NumberOut False + 1:NEXT(172$);

113$          TALLY:         time in receiptq at d1,tnow-receiptqenter,1:NEXT(0$);


;
;
;     Model statements for module:  Assign 2
;
0$            ASSIGN:        truckcap=8:
                             dockno=1:NEXT(1$);

1$            DUPLICATE:     truckcap-1,68$:NEXT(68$);


;
;
;     Model statements for module:  Process 1
;
68$           ASSIGN:        Unloading from dock1.NumberIn=Unloading from dock1.NumberIn + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP+1;
516$          STACK,         1:Save:NEXT(490$);

490$          QUEUE,         Unloading from dock1.Queue;
489$          SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(488$);

488$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(531$);

531$          ASSIGN:        Unloading from dock1.WaitTime=Unloading from dock1.WaitTime + Diff.WaitTime;
495$          TALLY:         Unloading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
497$          TALLY:         Unloading from dock1.TotalTimePerEntity,Diff.StartTime,1;
521$          ASSIGN:        Unloading from dock1.VATime=Unloading from dock1.VATime + Diff.VATime;
522$          TALLY:         Unloading from dock1.VATimePerEntity,Diff.VATime,1;
487$          RELEASE:       SELECT(TransSet4,LAST),1;
536$          STACK,         1:Destroy:NEXT(535$);

535$          ASSIGN:        Unloading from dock1.NumberOut=Unloading from dock1.NumberOut + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP-1:NEXT(174$);


;
;
;     Model statements for module:  Assign 110
;
174$          ASSIGN:        beginning time for putaway from d1=tnow:NEXT(104$);

104$          ASSIGN:        product3stock=(producttype==3)*(product3stock+1)+(producttype<>3)*(product3stock+0):
                             product2stock=(producttype==2)*(product2stock+1)+(producttype<>2)*(product2stock+0):
                             product1stock=(producttype==1)*(product1stock+1)+(producttype<>1)*(product1stock+0);
106$          WRITE,         stockr:
                             totalstock,
                             tnow:NEXT(2$);


;
;
;     Model statements for module:  Assign 3
;
2$            ASSIGN:        i=1:NEXT(3$);


;
;
;     Model statements for module:  Assign 4
;
3$            ASSIGN:        replaced=0:NEXT(4$);

4$            WHILE:         (replaced==0):NEXT(7$);


;
;
;     Model statements for module:  Decide 3
;
7$            BRANCH,        1:
                             If,(LocationA(i,1) == 0) ||  ( (producttype  ==  LocationA (i,2)) && (LocationA(i,1) < Capacity) ),
                             538$,Yes:
                             Else,539$,Yes;
538$          ASSIGN:        Decide 3.NumberOut True=Decide 3.NumberOut True + 1:NEXT(6$);

539$          ASSIGN:        Decide 3.NumberOut False=Decide 3.NumberOut False + 1:NEXT(9$);

6$            ASSIGN:        LocationA(i,1)=LocationA(i,1)+1:
                             LocationA(i,2)=producttype:NEXT(10$);


;
;
;     Model statements for module:  Assign 11
;
10$           ASSIGN:        Locationtype=1:NEXT(56$);


;
;
;     Model statements for module:  Decide 45
;
56$           BRANCH,        1:
                             If,dockno==1,540$,Yes:
                             Else,541$,Yes;
540$          ASSIGN:        Decide 45.NumberOut True=Decide 45.NumberOut True + 1:NEXT(197$);

541$          ASSIGN:        Decide 45.NumberOut False=Decide 45.NumberOut False + 1:NEXT(196$);


;
;
;     Model statements for module:  Assign 183
;
197$          ASSIGN:        width1=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance1=20+i*1+width1:NEXT(12$);


;
;
;     Model statements for module:  Assign 13
;
12$           ASSIGN:        replaced=1:NEXT(13$);

13$           ENDWHILE:NEXT(53$);


;
;
;     Model statements for module:  Decide 44
;
53$           BRANCH,        1:
                             If,dockno==1,542$,Yes:
                             Else,543$,Yes;
542$          ASSIGN:        Decide 44.NumberOut True=Decide 44.NumberOut True + 1:NEXT(15$);

543$          ASSIGN:        Decide 44.NumberOut False=Decide 44.NumberOut False + 1:NEXT(54$);


;
;
;     Model statements for module:  Seize 2
;
15$           QUEUE,         Seizing a forklift from forklift set at receiving ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet1,CYC, trans_no1),1:NEXT(545$);

545$          DELAY:         0.0,,VA:NEXT(216$);


;
;
;     Model statements for module:  Decide 229
;
216$          BRANCH,        1:
                             If,stock exceeded<>1,546$,Yes:
                             Else,547$,Yes;
546$          ASSIGN:        Decide 229.NumberOut True=Decide 229.NumberOut True + 1:NEXT(17$);

547$          ASSIGN:        Decide 229.NumberOut False=Decide 229.NumberOut False + 1:NEXT(217$);


;
;
;     Model statements for module:  Delay 1
;
17$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance1)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance3)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance5)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance7)+NORM(0,7.3))*2)),,
                             Other:NEXT(18$);

18$           RELEASE:       Member(TransSet1, Trans_No1),1;
176$          TALLY:         time for putaway from d1,tnow-beginning time for putaway from d1,1;
147$          ASSIGN:        #unloaded1=#unloaded1+1:NEXT(19$);


;
;
;     Model statements for module:  Decide 6
;
19$           BRANCH,        1:
                             If,#unloaded1==truckcap,548$,Yes:
                             Else,549$,Yes;
548$          ASSIGN:        Decide 6.NumberOut True=Decide 6.NumberOut True + 1:NEXT(20$);

549$          ASSIGN:        Decide 6.NumberOut False=Decide 6.NumberOut False + 1:NEXT(14$);


;
;
;     Model statements for module:  Release 1
;
20$           RELEASE:       dock1,1:NEXT(123$);

123$          TALLY:         time in system from d1,tnow-receiptqenter,1;
148$          ASSIGN:        #unloaded1=#unloaded1-#unloaded1:NEXT(14$);


;
;
;     Model statements for module:  Dispose 1
;
14$           ASSIGN:        Dispose 1.NumberOut=Dispose 1.NumberOut + 1;
550$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 14
;
217$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(18$);


;
;
;     Model statements for module:  Seize 15
;
54$           QUEUE,         Seizing a forklift from forklift set at receiving ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet2,CYC, trans_no2),1:NEXT(552$);

552$          DELAY:         0.0,,VA:NEXT(219$);


;
;
;     Model statements for module:  Decide 230
;
219$          BRANCH,        1:
                             If,stock exceeded<>1,553$,Yes:
                             Else,554$,Yes;
553$          ASSIGN:        Decide 230.NumberOut True=Decide 230.NumberOut True + 1:NEXT(57$);

554$          ASSIGN:        Decide 230.NumberOut False=Decide 230.NumberOut False + 1:NEXT(218$);


;
;
;     Model statements for module:  Delay 11
;
57$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance2)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance4)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance6)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance8)+NORM(0,7.3))*2)),,
                             Other:NEXT(58$);

58$           RELEASE:       Member(TransSet2, Trans_No2),1;
177$          TALLY:         time for putaway from d2,tnow-beginning time for putaway from d2,1;
149$          ASSIGN:        #unloaded2=#unloaded2+1:NEXT(60$);


;
;
;     Model statements for module:  Decide 56
;
60$           BRANCH,        1:
                             If,#unloaded2==truckcap,555$,Yes:
                             Else,556$,Yes;
555$          ASSIGN:        Decide 56.NumberOut True=Decide 56.NumberOut True + 1:NEXT(61$);

556$          ASSIGN:        Decide 56.NumberOut False=Decide 56.NumberOut False + 1:NEXT(59$);


;
;
;     Model statements for module:  Release 15
;
61$           RELEASE:       dock2,1:NEXT(122$);

122$          TALLY:         time in system from d2,tnow-receiptqenter,1;
150$          ASSIGN:        #unloaded2=#unloaded2-#unloaded2:NEXT(59$);


;
;
;     Model statements for module:  Dispose 15
;
59$           ASSIGN:        Dispose 15.NumberOut=Dispose 15.NumberOut + 1;
557$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 15
;
218$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(58$);


;
;
;     Model statements for module:  Assign 182
;
196$          ASSIGN:        width2=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance2=23+i*1+width2:NEXT(12$);


;
;
;     Model statements for module:  Decide 4
;
9$            BRANCH,        1:
                             If,
                             ((LocationB(i,1) == 0) ||  ( (producttype  ==  LocationB (i,2)) && (LocationB(i,1) < Capacity) )),
                             558$,Yes:
                             Else,559$,Yes;
558$          ASSIGN:        Decide 4.NumberOut True=Decide 4.NumberOut True + 1:NEXT(5$);

559$          ASSIGN:        Decide 4.NumberOut False=Decide 4.NumberOut False + 1:NEXT(70$);

5$            ASSIGN:        LocationB(i,1)=LocationB(i,1)+1:
                             LocationB(i,2)=producttype:NEXT(11$);


;
;
;     Model statements for module:  Assign 12
;
11$           ASSIGN:        Locationtype=2:NEXT(198$);


;
;
;     Model statements for module:  Decide 223
;
198$          BRANCH,        1:
                             If,dockno==1,560$,Yes:
                             Else,561$,Yes;
560$          ASSIGN:        Decide 223.NumberOut True=Decide 223.NumberOut True + 1:NEXT(199$);

561$          ASSIGN:        Decide 223.NumberOut False=Decide 223.NumberOut False + 1:NEXT(200$);


;
;
;     Model statements for module:  Assign 184
;
199$          ASSIGN:        width3=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance3=20+i*1+width3:NEXT(12$);


;
;
;     Model statements for module:  Assign 186
;
200$          ASSIGN:        width4=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance4=23+i*1+width4:NEXT(12$);


;
;
;     Model statements for module:  Decide 67
;
70$           BRANCH,        1:
                             If,((LocationC(i,1) == 0) ||  ( (producttype  ==  LocationC (i,2)) && (LocationC(i,1) < 8) )),562$,
                             Yes:
                             Else,563$,Yes;
562$          ASSIGN:        Decide 67.NumberOut True=Decide 67.NumberOut True + 1:NEXT(71$);

563$          ASSIGN:        Decide 67.NumberOut False=Decide 67.NumberOut False + 1:NEXT(89$);

71$           ASSIGN:        LocationC(i,1)=LocationC(i,1)+1:
                             LocationC(i,2)=producttype:NEXT(72$);


;
;
;     Model statements for module:  Assign 49
;
72$           ASSIGN:        Locationtype=3:NEXT(73$);


;
;
;     Model statements for module:  Decide 68
;
73$           BRANCH,        1:
                             If,dockno==1,564$,Yes:
                             Else,565$,Yes;
564$          ASSIGN:        Decide 68.NumberOut True=Decide 68.NumberOut True + 1:NEXT(74$);

565$          ASSIGN:        Decide 68.NumberOut False=Decide 68.NumberOut False + 1:NEXT(75$);


;
;
;     Model statements for module:  Assign 51
;
74$           ASSIGN:        width5=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance5=13+i*1+width5:NEXT(12$);


;
;
;     Model statements for module:  Assign 52
;
75$           ASSIGN:        width6=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance6=14+i*1+width6:NEXT(12$);


;
;
;     Model statements for module:  Decide 110
;
89$           BRANCH,        1:
                             If,((LocationD(i,1) == 0) ||  ( (producttype  ==  LocationD (i,2)) && (LocationD(i,1) < 8) )),566$,
                             Yes:
                             Else,567$,Yes;
566$          ASSIGN:        Decide 110.NumberOut True=Decide 110.NumberOut True + 1:NEXT(90$);

567$          ASSIGN:        Decide 110.NumberOut False=Decide 110.NumberOut False + 1:NEXT(8$);

90$           ASSIGN:        LocationD(i,1)=LocationD(i,1)+1:
                             LocationD(i,2)=producttype:NEXT(91$);


;
;
;     Model statements for module:  Assign 76
;
91$           ASSIGN:        Locationtype=4:NEXT(201$);


;
;
;     Model statements for module:  Decide 224
;
201$          BRANCH,        1:
                             If,dockno==1,568$,Yes:
                             Else,569$,Yes;
568$          ASSIGN:        Decide 224.NumberOut True=Decide 224.NumberOut True + 1:NEXT(202$);

569$          ASSIGN:        Decide 224.NumberOut False=Decide 224.NumberOut False + 1:NEXT(203$);


;
;
;     Model statements for module:  Assign 189
;
202$          ASSIGN:        width7=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance7=13+i*1+width7:NEXT(12$);


;
;
;     Model statements for module:  Assign 190
;
203$          ASSIGN:        width8=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance8=14+i*1+width8:NEXT(12$);


;
;
;     Model statements for module:  Assign 10
;
8$            ASSIGN:        i=i+1:NEXT(214$);


;
;
;     Model statements for module:  Decide 228
;
214$          BRANCH,        1:
                             If,i<=231,570$,Yes:
                             Else,571$,Yes;
570$          ASSIGN:        Decide 228.NumberOut True=Decide 228.NumberOut True + 1:NEXT(13$);

571$          ASSIGN:        Decide 228.NumberOut False=Decide 228.NumberOut False + 1:NEXT(215$);


;
;
;     Model statements for module:  Assign 196
;
215$          ASSIGN:        stock exceeded=1:NEXT(210$);


;
;
;     Model statements for module:  Decide 227
;
210$          BRANCH,        1:
                             If,producttype==1,211$,Yes:
                             If,producttype==2,212$,Yes:
                             Else,213$,Yes;
213$          ASSIGN:        stock3=stock3+1:NEXT(53$);

211$          ASSIGN:        stock1=stock1+1:NEXT(53$);

212$          ASSIGN:        stock2=stock2+1:NEXT(53$);

172$          TALLY:         time in receiptq at d2,tnow-receiptqenter,1:NEXT(21$);


;
;
;     Model statements for module:  Assign 15
;
21$           ASSIGN:        truckcap=8:
                             dockno=2:NEXT(22$);

22$           DUPLICATE:     truckcap-1,69$:NEXT(69$);


;
;
;     Model statements for module:  Process 2
;
69$           ASSIGN:        Unloading from dock2.NumberIn=Unloading from dock2.NumberIn + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP+1;
603$          STACK,         1:Save:NEXT(577$);

577$          QUEUE,         Unloading from dock2.Queue;
576$          SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(575$);

575$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(618$);

618$          ASSIGN:        Unloading from dock2.WaitTime=Unloading from dock2.WaitTime + Diff.WaitTime;
582$          TALLY:         Unloading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
584$          TALLY:         Unloading from dock2.TotalTimePerEntity,Diff.StartTime,1;
608$          ASSIGN:        Unloading from dock2.VATime=Unloading from dock2.VATime + Diff.VATime;
609$          TALLY:         Unloading from dock2.VATimePerEntity,Diff.VATime,1;
574$          RELEASE:       SELECT(TransSet5,LAST),1;
623$          STACK,         1:Destroy:NEXT(622$);

622$          ASSIGN:        Unloading from dock2.NumberOut=Unloading from dock2.NumberOut + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP-1:NEXT(175$);


;
;
;     Model statements for module:  Assign 111
;
175$          ASSIGN:        beginning time for putaway from d2=tnow:NEXT(104$);

118$          COUNT:         receiptatruck,1:NEXT(112$);

120$          COUNT:         receiptbtruck,1:NEXT(112$);


;
;
;     Model statements for module:  Dispose 16
;
235$          ASSIGN:        Dispose 16.NumberOut=Dispose 16.NumberOut + 1;
625$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 69
;
244$          ASSIGN:        receiptb2# c1=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,68)
                             :NEXT(248$);


;
;
;     Model statements for module:  Decide 100
;
248$          BRANCH,        1:
                             If,receiptb2# c1==0,235$,Yes:
                             If,receiptb2# c1==1,249$,Yes:
                             Else,250$,Yes;

;
;
;     Model statements for module:  Separate 6
;
250$          DUPLICATE,     100 - 50:
                             receiptb2# c1-1,630$,50:NEXT(629$);

629$          ASSIGN:        Separate 6.NumberOut Orig=Separate 6.NumberOut Orig + 1:NEXT(249$);

630$          ASSIGN:        Separate 6.NumberOut Dup=Separate 6.NumberOut Dup + 1:NEXT(249$);


;
;
;     Model statements for module:  Process 11
;
249$          ASSIGN:        Process 11.NumberIn=Process 11.NumberIn + 1:
                             Process 11.WIP=Process 11.WIP+1;
660$          STACK,         1:Save:NEXT(634$);

634$          QUEUE,         Process 11.Queue;
633$          SEIZE,         2,VA:
                             Resource 5,1:NEXT(632$);

632$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c1,4)),,VA:NEXT(675$);

675$          ASSIGN:        Process 11.WaitTime=Process 11.WaitTime + Diff.WaitTime;
639$          TALLY:         Process 11.WaitTimePerEntity,Diff.WaitTime,1;
641$          TALLY:         Process 11.TotalTimePerEntity,Diff.StartTime,1;
665$          ASSIGN:        Process 11.VATime=Process 11.VATime + Diff.VATime;
666$          TALLY:         Process 11.VATimePerEntity,Diff.VATime,1;
631$          RELEASE:       Resource 5,1;
680$          STACK,         1:Destroy:NEXT(679$);

679$          ASSIGN:        Process 11.NumberOut=Process 11.NumberOut + 1:
                             Process 11.WIP=Process 11.WIP-1:NEXT(231$);


;
;
;     Model statements for module:  Create 5
;

682$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c1:MinutesToBaseTime(1440):NEXT(683$);

683$          ASSIGN:        Create for receiving c shift1 c1.NumberOut=Create for receiving c shift1 c1.NumberOut + 1
                             :NEXT(251$);


;
;
;     Model statements for module:  Decide 101
;
251$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),686$,Yes:
                             Else,687$,Yes;
686$          ASSIGN:        Decide 101.NumberOut True=Decide 101.NumberOut True + 1:NEXT(252$);

687$          ASSIGN:        Decide 101.NumberOut False=Decide 101.NumberOut False + 1:NEXT(253$);


;
;
;     Model statements for module:  Assign 70
;
252$          ASSIGN:        receiptc1# c1=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,69)
                             :NEXT(254$);


;
;
;     Model statements for module:  Decide 102
;
254$          BRANCH,        1:
                             If,receiptc1# c1==0,235$,Yes:
                             If,receiptc1# c1==1,255$,Yes:
                             Else,256$,Yes;

;
;
;     Model statements for module:  Separate 7
;
256$          DUPLICATE,     100 - 50:
                             receiptc1# c1-1,692$,50:NEXT(691$);

691$          ASSIGN:        Separate 7.NumberOut Orig=Separate 7.NumberOut Orig + 1:NEXT(255$);

692$          ASSIGN:        Separate 7.NumberOut Dup=Separate 7.NumberOut Dup + 1:NEXT(255$);


;
;
;     Model statements for module:  Process 12
;
255$          ASSIGN:        Process 12.NumberIn=Process 12.NumberIn + 1:
                             Process 12.WIP=Process 12.WIP+1;
722$          STACK,         1:Save:NEXT(696$);

696$          QUEUE,         Process 12.Queue;
695$          SEIZE,         2,VA:
                             Resource 6,1:NEXT(694$);

694$          DELAY:         HoursToBaseTime(expo(10/receiptc1# c1,5)),,VA:NEXT(737$);

737$          ASSIGN:        Process 12.WaitTime=Process 12.WaitTime + Diff.WaitTime;
701$          TALLY:         Process 12.WaitTimePerEntity,Diff.WaitTime,1;
703$          TALLY:         Process 12.TotalTimePerEntity,Diff.StartTime,1;
727$          ASSIGN:        Process 12.VATime=Process 12.VATime + Diff.VATime;
728$          TALLY:         Process 12.VATimePerEntity,Diff.VATime,1;
693$          RELEASE:       Resource 6,1;
742$          STACK,         1:Destroy:NEXT(741$);

741$          ASSIGN:        Process 12.NumberOut=Process 12.NumberOut + 1:
                             Process 12.WIP=Process 12.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Assign 58
;
232$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 71
;
253$          ASSIGN:        receiptc2# c1=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,70)
                             :NEXT(257$);


;
;
;     Model statements for module:  Decide 103
;
257$          BRANCH,        1:
                             If,receiptc2# c1==0,235$,Yes:
                             If,receiptc2# c1==1,258$,Yes:
                             Else,259$,Yes;

;
;
;     Model statements for module:  Separate 8
;
259$          DUPLICATE,     100 - 50:
                             receiptc2# c1-1,748$,50:NEXT(747$);

747$          ASSIGN:        Separate 8.NumberOut Orig=Separate 8.NumberOut Orig + 1:NEXT(258$);

748$          ASSIGN:        Separate 8.NumberOut Dup=Separate 8.NumberOut Dup + 1:NEXT(258$);


;
;
;     Model statements for module:  Process 13
;
258$          ASSIGN:        Process 13.NumberIn=Process 13.NumberIn + 1:
                             Process 13.WIP=Process 13.WIP+1;
778$          STACK,         1:Save:NEXT(752$);

752$          QUEUE,         Process 13.Queue;
751$          SEIZE,         2,VA:
                             Resource 7,1:NEXT(750$);

750$          DELAY:         HoursToBaseTime(expo(14/receiptc2# c1,6)),,VA:NEXT(793$);

793$          ASSIGN:        Process 13.WaitTime=Process 13.WaitTime + Diff.WaitTime;
757$          TALLY:         Process 13.WaitTimePerEntity,Diff.WaitTime,1;
759$          TALLY:         Process 13.TotalTimePerEntity,Diff.StartTime,1;
783$          ASSIGN:        Process 13.VATime=Process 13.VATime + Diff.VATime;
784$          TALLY:         Process 13.VATimePerEntity,Diff.VATime,1;
749$          RELEASE:       Resource 7,1;
798$          STACK,         1:Destroy:NEXT(797$);

797$          ASSIGN:        Process 13.NumberOut=Process 13.NumberOut + 1:
                             Process 13.WIP=Process 13.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Create 11
;

800$          CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c1:MinutesToBaseTime(1440):NEXT(801$);

801$          ASSIGN:        Create for receiving a shift2 c1.NumberOut=Create for receiving a shift2 c1.NumberOut + 1
                             :NEXT(238$);


;
;
;     Model statements for module:  Decide 93
;
238$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),804$,Yes:
                             Else,805$,Yes;
804$          ASSIGN:        Decide 93.NumberOut True=Decide 93.NumberOut True + 1:NEXT(233$);

805$          ASSIGN:        Decide 93.NumberOut False=Decide 93.NumberOut False + 1:NEXT(239$);


;
;
;     Model statements for module:  Assign 62
;
233$          ASSIGN:        receipta1# c1=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,65)
                             :NEXT(234$);


;
;
;     Model statements for module:  Decide 92
;
234$          BRANCH,        1:
                             If,receipta1# c1==0,235$,Yes:
                             If,receipta1# c1==1,236$,Yes:
                             Else,237$,Yes;

;
;
;     Model statements for module:  Separate 1
;
237$          DUPLICATE,     100 - 50:
                             receipta1# c1-1,810$,50:NEXT(809$);

809$          ASSIGN:        Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1:NEXT(236$);

810$          ASSIGN:        Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1:NEXT(236$);


;
;
;     Model statements for module:  Process 6
;
236$          ASSIGN:        Process 6.NumberIn=Process 6.NumberIn + 1:
                             Process 6.WIP=Process 6.WIP+1;
840$          STACK,         1:Save:NEXT(814$);

814$          QUEUE,         Process 6.Queue;
813$          SEIZE,         2,VA:
                             Resource 1,1:NEXT(812$);

812$          DELAY:         HoursToBaseTime(expo(10/receipta1# c1,1)),,VA:NEXT(855$);

855$          ASSIGN:        Process 6.WaitTime=Process 6.WaitTime + Diff.WaitTime;
819$          TALLY:         Process 6.WaitTimePerEntity,Diff.WaitTime,1;
821$          TALLY:         Process 6.TotalTimePerEntity,Diff.StartTime,1;
845$          ASSIGN:        Process 6.VATime=Process 6.VATime + Diff.VATime;
846$          TALLY:         Process 6.VATimePerEntity,Diff.VATime,1;
811$          RELEASE:       Resource 1,1;
860$          STACK,         1:Destroy:NEXT(859$);

859$          ASSIGN:        Process 6.NumberOut=Process 6.NumberOut + 1:
                             Process 6.WIP=Process 6.WIP-1:NEXT(230$);


;
;
;     Model statements for module:  Assign 1
;
230$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 65
;
239$          ASSIGN:        receipta2# c1=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,66)
                             :NEXT(240$);


;
;
;     Model statements for module:  Decide 94
;
240$          BRANCH,        1:
                             If,receipta2# c1==0,235$,Yes:
                             If,receipta2# c1==1,242$,Yes:
                             Else,241$,Yes;

;
;
;     Model statements for module:  Separate 2
;
241$          DUPLICATE,     100 - 50:
                             receipta2# c1-1,866$,50:NEXT(865$);

865$          ASSIGN:        Separate 2.NumberOut Orig=Separate 2.NumberOut Orig + 1:NEXT(242$);

866$          ASSIGN:        Separate 2.NumberOut Dup=Separate 2.NumberOut Dup + 1:NEXT(242$);


;
;
;     Model statements for module:  Process 8
;
242$          ASSIGN:        Process 8.NumberIn=Process 8.NumberIn + 1:
                             Process 8.WIP=Process 8.WIP+1;
896$          STACK,         1:Save:NEXT(870$);

870$          QUEUE,         Process 8.Queue;
869$          SEIZE,         2,VA:
                             Resource 2,1:NEXT(868$);

868$          DELAY:         HoursToBaseTime(expo(14/receipta2# c1,2)),,VA:NEXT(911$);

911$          ASSIGN:        Process 8.WaitTime=Process 8.WaitTime + Diff.WaitTime;
875$          TALLY:         Process 8.WaitTimePerEntity,Diff.WaitTime,1;
877$          TALLY:         Process 8.TotalTimePerEntity,Diff.StartTime,1;
901$          ASSIGN:        Process 8.VATime=Process 8.VATime + Diff.VATime;
902$          TALLY:         Process 8.VATimePerEntity,Diff.VATime,1;
867$          RELEASE:       Resource 2,1;
916$          STACK,         1:Destroy:NEXT(915$);

915$          ASSIGN:        Process 8.NumberOut=Process 8.NumberOut + 1:
                             Process 8.WIP=Process 8.WIP-1:NEXT(230$);


;
;
;     Model statements for module:  Create 16
;

918$          CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c1:MinutesToBaseTime(1440):NEXT(919$);

919$          ASSIGN:        Create for receiving b shift2 c1.NumberOut=Create for receiving b shift2 c1.NumberOut + 1
                             :NEXT(243$);


;
;
;     Model statements for module:  Create 17
;

922$          CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c1:MinutesToBaseTime(1440):NEXT(923$);

923$          ASSIGN:        Create for receiving c shift2 c1.NumberOut=Create for receiving c shift2 c1.NumberOut + 1
                             :NEXT(251$);


;
;
;     Model statements for module:  Create 24
;

926$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c2:MinutesToBaseTime(1440):NEXT(927$);

927$          ASSIGN:        Create for receiving b shift1 c2.NumberOut=Create for receiving b shift1 c2.NumberOut + 1
                             :NEXT(273$);


;
;
;     Model statements for module:  Decide 127
;
273$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),930$,Yes:
                             Else,931$,Yes;
930$          ASSIGN:        Decide 127.NumberOut True=Decide 127.NumberOut True + 1:NEXT(322$);

931$          ASSIGN:        Decide 127.NumberOut False=Decide 127.NumberOut False + 1:NEXT(274$);


;
;
;     Model statements for module:  Assign 199
;
322$          ASSIGN:        receiptb1# c2=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,73)
                             :NEXT(275$);


;
;
;     Model statements for module:  Decide 128
;
275$          BRANCH,        1:
                             If,receiptb1# c2==0,265$,Yes:
                             If,receiptb1# c2==1,276$,Yes:
                             Else,277$,Yes;

;
;
;     Model statements for module:  Separate 15
;
277$          DUPLICATE,     100 - 50:
                             receiptb1# c2-1,936$,50:NEXT(935$);

935$          ASSIGN:        Separate 15.NumberOut Orig=Separate 15.NumberOut Orig + 1:NEXT(276$);

936$          ASSIGN:        Separate 15.NumberOut Dup=Separate 15.NumberOut Dup + 1:NEXT(276$);


;
;
;     Model statements for module:  Process 20
;
276$          ASSIGN:        Process 20.NumberIn=Process 20.NumberIn + 1:
                             Process 20.WIP=Process 20.WIP+1;
966$          STACK,         1:Save:NEXT(940$);

940$          QUEUE,         Process 20.Queue;
939$          SEIZE,         2,VA:
                             Resource 14,1:NEXT(938$);

938$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c2,9)),,VA:NEXT(981$);

981$          ASSIGN:        Process 20.WaitTime=Process 20.WaitTime + Diff.WaitTime;
945$          TALLY:         Process 20.WaitTimePerEntity,Diff.WaitTime,1;
947$          TALLY:         Process 20.TotalTimePerEntity,Diff.StartTime,1;
971$          ASSIGN:        Process 20.VATime=Process 20.VATime + Diff.VATime;
972$          TALLY:         Process 20.VATimePerEntity,Diff.VATime,1;
937$          RELEASE:       Resource 14,1;
986$          STACK,         1:Destroy:NEXT(985$);

985$          ASSIGN:        Process 20.NumberOut=Process 20.NumberOut + 1:
                             Process 20.WIP=Process 20.WIP-1:NEXT(261$);


;
;
;     Model statements for module:  Assign 83
;
261$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Dispose 22
;
265$          ASSIGN:        Dispose 22.NumberOut=Dispose 22.NumberOut + 1;
988$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 88
;
274$          ASSIGN:        receiptb2# c2=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,74)
                             :NEXT(278$);


;
;
;     Model statements for module:  Decide 129
;
278$          BRANCH,        1:
                             If,receiptb2# c2==0,265$,Yes:
                             If,receiptb2# c2==1,279$,Yes:
                             Else,280$,Yes;

;
;
;     Model statements for module:  Separate 16
;
280$          DUPLICATE,     100 - 50:
                             receiptb2# c2-1,993$,50:NEXT(992$);

992$          ASSIGN:        Separate 16.NumberOut Orig=Separate 16.NumberOut Orig + 1:NEXT(279$);

993$          ASSIGN:        Separate 16.NumberOut Dup=Separate 16.NumberOut Dup + 1:NEXT(279$);


;
;
;     Model statements for module:  Process 21
;
279$          ASSIGN:        Process 21.NumberIn=Process 21.NumberIn + 1:
                             Process 21.WIP=Process 21.WIP+1;
1023$         STACK,         1:Save:NEXT(997$);

997$          QUEUE,         Process 21.Queue;
996$          SEIZE,         2,VA:
                             Resource 15,1:NEXT(995$);

995$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c2,10)),,VA:NEXT(1038$);

1038$         ASSIGN:        Process 21.WaitTime=Process 21.WaitTime + Diff.WaitTime;
1002$         TALLY:         Process 21.WaitTimePerEntity,Diff.WaitTime,1;
1004$         TALLY:         Process 21.TotalTimePerEntity,Diff.StartTime,1;
1028$         ASSIGN:        Process 21.VATime=Process 21.VATime + Diff.VATime;
1029$         TALLY:         Process 21.VATimePerEntity,Diff.VATime,1;
994$          RELEASE:       Resource 15,1;
1043$         STACK,         1:Destroy:NEXT(1042$);

1042$         ASSIGN:        Process 21.NumberOut=Process 21.NumberOut + 1:
                             Process 21.WIP=Process 21.WIP-1:NEXT(261$);


;
;
;     Model statements for module:  Create 25
;

1045$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c2:MinutesToBaseTime(1440):NEXT(1046$);

1046$         ASSIGN:        Create for receiving c shift1 c2.NumberOut=Create for receiving c shift1 c2.NumberOut + 1
                             :NEXT(281$);


;
;
;     Model statements for module:  Decide 130
;
281$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1049$,Yes:
                             Else,1050$,Yes;
1049$         ASSIGN:        Decide 130.NumberOut True=Decide 130.NumberOut True + 1:NEXT(282$);

1050$         ASSIGN:        Decide 130.NumberOut False=Decide 130.NumberOut False + 1:NEXT(283$);


;
;
;     Model statements for module:  Assign 89
;
282$          ASSIGN:        receiptc1# c2=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,75)
                             :NEXT(284$);


;
;
;     Model statements for module:  Decide 131
;
284$          BRANCH,        1:
                             If,receiptc1# c2==0,265$,Yes:
                             If,receiptc1# c2==1,285$,Yes:
                             Else,286$,Yes;

;
;
;     Model statements for module:  Separate 17
;
286$          DUPLICATE,     100 - 50:
                             receiptc1# c2-1,1055$,50:NEXT(1054$);

1054$         ASSIGN:        Separate 17.NumberOut Orig=Separate 17.NumberOut Orig + 1:NEXT(285$);

1055$         ASSIGN:        Separate 17.NumberOut Dup=Separate 17.NumberOut Dup + 1:NEXT(285$);


;
;
;     Model statements for module:  Process 22
;
285$          ASSIGN:        Process 22.NumberIn=Process 22.NumberIn + 1:
                             Process 22.WIP=Process 22.WIP+1;
1085$         STACK,         1:Save:NEXT(1059$);

1059$         QUEUE,         Process 22.Queue;
1058$         SEIZE,         2,VA:
                             Resource 16,1:NEXT(1057$);

1057$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c2,11)),,VA:NEXT(1100$);

1100$         ASSIGN:        Process 22.WaitTime=Process 22.WaitTime + Diff.WaitTime;
1064$         TALLY:         Process 22.WaitTimePerEntity,Diff.WaitTime,1;
1066$         TALLY:         Process 22.TotalTimePerEntity,Diff.StartTime,1;
1090$         ASSIGN:        Process 22.VATime=Process 22.VATime + Diff.VATime;
1091$         TALLY:         Process 22.VATimePerEntity,Diff.VATime,1;
1056$         RELEASE:       Resource 16,1;
1105$         STACK,         1:Destroy:NEXT(1104$);

1104$         ASSIGN:        Process 22.NumberOut=Process 22.NumberOut + 1:
                             Process 22.WIP=Process 22.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Assign 84
;
262$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 90
;
283$          ASSIGN:        receiptc2# c2=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,76)
                             :NEXT(287$);


;
;
;     Model statements for module:  Decide 132
;
287$          BRANCH,        1:
                             If,receiptc2# c2==0,265$,Yes:
                             If,receiptc2# c2==1,288$,Yes:
                             Else,289$,Yes;

;
;
;     Model statements for module:  Separate 18
;
289$          DUPLICATE,     100 - 50:
                             receiptc2# c2-1,1111$,50:NEXT(1110$);

1110$         ASSIGN:        Separate 18.NumberOut Orig=Separate 18.NumberOut Orig + 1:NEXT(288$);

1111$         ASSIGN:        Separate 18.NumberOut Dup=Separate 18.NumberOut Dup + 1:NEXT(288$);


;
;
;     Model statements for module:  Process 23
;
288$          ASSIGN:        Process 23.NumberIn=Process 23.NumberIn + 1:
                             Process 23.WIP=Process 23.WIP+1;
1141$         STACK,         1:Save:NEXT(1115$);

1115$         QUEUE,         Process 23.Queue;
1114$         SEIZE,         2,VA:
                             Resource 17,1:NEXT(1113$);

1113$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c2,12)),,VA:NEXT(1156$);

1156$         ASSIGN:        Process 23.WaitTime=Process 23.WaitTime + Diff.WaitTime;
1120$         TALLY:         Process 23.WaitTimePerEntity,Diff.WaitTime,1;
1122$         TALLY:         Process 23.TotalTimePerEntity,Diff.StartTime,1;
1146$         ASSIGN:        Process 23.VATime=Process 23.VATime + Diff.VATime;
1147$         TALLY:         Process 23.VATimePerEntity,Diff.VATime,1;
1112$         RELEASE:       Resource 17,1;
1161$         STACK,         1:Destroy:NEXT(1160$);

1160$         ASSIGN:        Process 23.NumberOut=Process 23.NumberOut + 1:
                             Process 23.WIP=Process 23.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Create 27
;

1163$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c2:MinutesToBaseTime(1440):NEXT(1164$);

1164$         ASSIGN:        Create for receiving a shift2 c2.NumberOut=Create for receiving a shift2 c2.NumberOut + 1
                             :NEXT(268$);


;
;
;     Model statements for module:  Decide 125
;
268$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1167$,Yes:
                             Else,1168$,Yes;
1167$         ASSIGN:        Decide 125.NumberOut True=Decide 125.NumberOut True + 1:NEXT(263$);

1168$         ASSIGN:        Decide 125.NumberOut False=Decide 125.NumberOut False + 1:NEXT(269$);


;
;
;     Model statements for module:  Assign 85
;
263$          ASSIGN:        receipta1# c2=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,71)
                             :NEXT(264$);


;
;
;     Model statements for module:  Decide 124
;
264$          BRANCH,        1:
                             If,receipta1# c2==0,265$,Yes:
                             If,receipta1# c2==1,266$,Yes:
                             Else,267$,Yes;

;
;
;     Model statements for module:  Separate 13
;
267$          DUPLICATE,     100 - 50:
                             receipta1# c2-1,1173$,50:NEXT(1172$);

1172$         ASSIGN:        Separate 13.NumberOut Orig=Separate 13.NumberOut Orig + 1:NEXT(266$);

1173$         ASSIGN:        Separate 13.NumberOut Dup=Separate 13.NumberOut Dup + 1:NEXT(266$);


;
;
;     Model statements for module:  Process 18
;
266$          ASSIGN:        Process 18.NumberIn=Process 18.NumberIn + 1:
                             Process 18.WIP=Process 18.WIP+1;
1203$         STACK,         1:Save:NEXT(1177$);

1177$         QUEUE,         Process 18.Queue;
1176$         SEIZE,         2,VA:
                             Resource 12,1:NEXT(1175$);

1175$         DELAY:         HoursToBaseTime(expo(10/receipta1# c2,7)),,VA:NEXT(1218$);

1218$         ASSIGN:        Process 18.WaitTime=Process 18.WaitTime + Diff.WaitTime;
1182$         TALLY:         Process 18.WaitTimePerEntity,Diff.WaitTime,1;
1184$         TALLY:         Process 18.TotalTimePerEntity,Diff.StartTime,1;
1208$         ASSIGN:        Process 18.VATime=Process 18.VATime + Diff.VATime;
1209$         TALLY:         Process 18.VATimePerEntity,Diff.VATime,1;
1174$         RELEASE:       Resource 12,1;
1223$         STACK,         1:Destroy:NEXT(1222$);

1222$         ASSIGN:        Process 18.NumberOut=Process 18.NumberOut + 1:
                             Process 18.WIP=Process 18.WIP-1:NEXT(260$);


;
;
;     Model statements for module:  Assign 82
;
260$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 86
;
269$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,72)
                             :NEXT(270$);


;
;
;     Model statements for module:  Decide 126
;
270$          BRANCH,        1:
                             If,receipta2# c2==0,265$,Yes:
                             If,receipta2# c2==1,272$,Yes:
                             Else,271$,Yes;

;
;
;     Model statements for module:  Separate 14
;
271$          DUPLICATE,     100 - 50:
                             receipta2# c2-1,1229$,50:NEXT(1228$);

1228$         ASSIGN:        Separate 14.NumberOut Orig=Separate 14.NumberOut Orig + 1:NEXT(272$);

1229$         ASSIGN:        Separate 14.NumberOut Dup=Separate 14.NumberOut Dup + 1:NEXT(272$);


;
;
;     Model statements for module:  Process 19
;
272$          ASSIGN:        Process 19.NumberIn=Process 19.NumberIn + 1:
                             Process 19.WIP=Process 19.WIP+1;
1259$         STACK,         1:Save:NEXT(1233$);

1233$         QUEUE,         Process 19.Queue;
1232$         SEIZE,         2,VA:
                             Resource 13,1:NEXT(1231$);

1231$         DELAY:         HoursToBaseTime(expo(14/receipta2# c2,8)),,VA:NEXT(1274$);

1274$         ASSIGN:        Process 19.WaitTime=Process 19.WaitTime + Diff.WaitTime;
1238$         TALLY:         Process 19.WaitTimePerEntity,Diff.WaitTime,1;
1240$         TALLY:         Process 19.TotalTimePerEntity,Diff.StartTime,1;
1264$         ASSIGN:        Process 19.VATime=Process 19.VATime + Diff.VATime;
1265$         TALLY:         Process 19.VATimePerEntity,Diff.VATime,1;
1230$         RELEASE:       Resource 13,1;
1279$         STACK,         1:Destroy:NEXT(1278$);

1278$         ASSIGN:        Process 19.NumberOut=Process 19.NumberOut + 1:
                             Process 19.WIP=Process 19.WIP-1:NEXT(260$);


;
;
;     Model statements for module:  Create 28
;

1281$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c2:MinutesToBaseTime(1440):NEXT(1282$);

1282$         ASSIGN:        Create for receiving b shift2 c2.NumberOut=Create for receiving b shift2 c2.NumberOut + 1
                             :NEXT(273$);


;
;
;     Model statements for module:  Create 29
;

1285$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c2:MinutesToBaseTime(1440):NEXT(1286$);

1286$         ASSIGN:        Create for receiving c shift2 c2.NumberOut=Create for receiving c shift2 c2.NumberOut + 1
                             :NEXT(281$);


;
;
;     Model statements for module:  Create 45
;

1289$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c3:MinutesToBaseTime(1440):NEXT(1290$);

1290$         ASSIGN:        Create for receiving b shift1 c3.NumberOut=Create for receiving b shift1 c3.NumberOut + 1
                             :NEXT(303$);


;
;
;     Model statements for module:  Decide 157
;
303$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1293$,Yes:
                             Else,1294$,Yes;
1293$         ASSIGN:        Decide 157.NumberOut True=Decide 157.NumberOut True + 1:NEXT(304$);

1294$         ASSIGN:        Decide 157.NumberOut False=Decide 157.NumberOut False + 1:NEXT(305$);


;
;
;     Model statements for module:  Assign 117
;
304$          ASSIGN:        receiptb1# c3=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,79)
                             :NEXT(306$);


;
;
;     Model statements for module:  Decide 158
;
306$          BRANCH,        1:
                             If,receiptb1# c3==0,295$,Yes:
                             If,receiptb1# c3==1,307$,Yes:
                             Else,308$,Yes;

;
;
;     Model statements for module:  Separate 33
;
308$          DUPLICATE,     100 - 50:
                             receiptb1# c3-1,1299$,50:NEXT(1298$);

1298$         ASSIGN:        Separate 33.NumberOut Orig=Separate 33.NumberOut Orig + 1:NEXT(307$);

1299$         ASSIGN:        Separate 33.NumberOut Dup=Separate 33.NumberOut Dup + 1:NEXT(307$);


;
;
;     Model statements for module:  Process 38
;
307$          ASSIGN:        Process 38.NumberIn=Process 38.NumberIn + 1:
                             Process 38.WIP=Process 38.WIP+1;
1329$         STACK,         1:Save:NEXT(1303$);

1303$         QUEUE,         Process 38.Queue;
1302$         SEIZE,         2,VA:
                             Resource 26,1:NEXT(1301$);

1301$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c3,15)),,VA:NEXT(1344$);

1344$         ASSIGN:        Process 38.WaitTime=Process 38.WaitTime + Diff.WaitTime;
1308$         TALLY:         Process 38.WaitTimePerEntity,Diff.WaitTime,1;
1310$         TALLY:         Process 38.TotalTimePerEntity,Diff.StartTime,1;
1334$         ASSIGN:        Process 38.VATime=Process 38.VATime + Diff.VATime;
1335$         TALLY:         Process 38.VATimePerEntity,Diff.VATime,1;
1300$         RELEASE:       Resource 26,1;
1349$         STACK,         1:Destroy:NEXT(1348$);

1348$         ASSIGN:        Process 38.NumberOut=Process 38.NumberOut + 1:
                             Process 38.WIP=Process 38.WIP-1:NEXT(291$);


;
;
;     Model statements for module:  Assign 113
;
291$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Dispose 25
;
295$          ASSIGN:        Dispose 25.NumberOut=Dispose 25.NumberOut + 1;
1351$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 118
;
305$          ASSIGN:        receiptb2# c3=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,80)
                             :NEXT(309$);


;
;
;     Model statements for module:  Decide 159
;
309$          BRANCH,        1:
                             If,receiptb2# c3==0,295$,Yes:
                             If,receiptb2# c3==1,310$,Yes:
                             Else,311$,Yes;

;
;
;     Model statements for module:  Separate 34
;
311$          DUPLICATE,     100 - 50:
                             receiptb2# c3-1,1356$,50:NEXT(1355$);

1355$         ASSIGN:        Separate 34.NumberOut Orig=Separate 34.NumberOut Orig + 1:NEXT(310$);

1356$         ASSIGN:        Separate 34.NumberOut Dup=Separate 34.NumberOut Dup + 1:NEXT(310$);


;
;
;     Model statements for module:  Process 39
;
310$          ASSIGN:        Process 39.NumberIn=Process 39.NumberIn + 1:
                             Process 39.WIP=Process 39.WIP+1;
1386$         STACK,         1:Save:NEXT(1360$);

1360$         QUEUE,         Process 39.Queue;
1359$         SEIZE,         2,VA:
                             Resource 27,1:NEXT(1358$);

1358$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c3,16)),,VA:NEXT(1401$);

1401$         ASSIGN:        Process 39.WaitTime=Process 39.WaitTime + Diff.WaitTime;
1365$         TALLY:         Process 39.WaitTimePerEntity,Diff.WaitTime,1;
1367$         TALLY:         Process 39.TotalTimePerEntity,Diff.StartTime,1;
1391$         ASSIGN:        Process 39.VATime=Process 39.VATime + Diff.VATime;
1392$         TALLY:         Process 39.VATimePerEntity,Diff.VATime,1;
1357$         RELEASE:       Resource 27,1;
1406$         STACK,         1:Destroy:NEXT(1405$);

1405$         ASSIGN:        Process 39.NumberOut=Process 39.NumberOut + 1:
                             Process 39.WIP=Process 39.WIP-1:NEXT(291$);


;
;
;     Model statements for module:  Create 46
;

1408$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c3:MinutesToBaseTime(1440):NEXT(1409$);

1409$         ASSIGN:        Create for receiving c shift1 c3.NumberOut=Create for receiving c shift1 c3.NumberOut + 1
                             :NEXT(312$);


;
;
;     Model statements for module:  Decide 160
;
312$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1412$,Yes:
                             Else,1413$,Yes;
1412$         ASSIGN:        Decide 160.NumberOut True=Decide 160.NumberOut True + 1:NEXT(313$);

1413$         ASSIGN:        Decide 160.NumberOut False=Decide 160.NumberOut False + 1:NEXT(314$);


;
;
;     Model statements for module:  Assign 119
;
313$          ASSIGN:        receiptc1# c3=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,81)
                             :NEXT(315$);


;
;
;     Model statements for module:  Decide 161
;
315$          BRANCH,        1:
                             If,receiptc1# c3==0,295$,Yes:
                             If,receiptc1# c3==1,316$,Yes:
                             Else,317$,Yes;

;
;
;     Model statements for module:  Separate 35
;
317$          DUPLICATE,     100 - 50:
                             receiptc1# c3-1,1418$,50:NEXT(1417$);

1417$         ASSIGN:        Separate 35.NumberOut Orig=Separate 35.NumberOut Orig + 1:NEXT(316$);

1418$         ASSIGN:        Separate 35.NumberOut Dup=Separate 35.NumberOut Dup + 1:NEXT(316$);


;
;
;     Model statements for module:  Process 40
;
316$          ASSIGN:        Process 40.NumberIn=Process 40.NumberIn + 1:
                             Process 40.WIP=Process 40.WIP+1;
1448$         STACK,         1:Save:NEXT(1422$);

1422$         QUEUE,         Process 40.Queue;
1421$         SEIZE,         2,VA:
                             Resource 28,1:NEXT(1420$);

1420$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c3,17)),,VA:NEXT(1463$);

1463$         ASSIGN:        Process 40.WaitTime=Process 40.WaitTime + Diff.WaitTime;
1427$         TALLY:         Process 40.WaitTimePerEntity,Diff.WaitTime,1;
1429$         TALLY:         Process 40.TotalTimePerEntity,Diff.StartTime,1;
1453$         ASSIGN:        Process 40.VATime=Process 40.VATime + Diff.VATime;
1454$         TALLY:         Process 40.VATimePerEntity,Diff.VATime,1;
1419$         RELEASE:       Resource 28,1;
1468$         STACK,         1:Destroy:NEXT(1467$);

1467$         ASSIGN:        Process 40.NumberOut=Process 40.NumberOut + 1:
                             Process 40.WIP=Process 40.WIP-1:NEXT(292$);


;
;
;     Model statements for module:  Assign 114
;
292$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 120
;
314$          ASSIGN:        receiptc2# c3=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,82)
                             :NEXT(318$);


;
;
;     Model statements for module:  Decide 162
;
318$          BRANCH,        1:
                             If,receiptc2# c3==0,295$,Yes:
                             If,receiptc2# c3==1,319$,Yes:
                             Else,320$,Yes;

;
;
;     Model statements for module:  Separate 36
;
320$          DUPLICATE,     100 - 50:
                             receiptc2# c3-1,1474$,50:NEXT(1473$);

1473$         ASSIGN:        Separate 36.NumberOut Orig=Separate 36.NumberOut Orig + 1:NEXT(319$);

1474$         ASSIGN:        Separate 36.NumberOut Dup=Separate 36.NumberOut Dup + 1:NEXT(319$);


;
;
;     Model statements for module:  Process 41
;
319$          ASSIGN:        Process 41.NumberIn=Process 41.NumberIn + 1:
                             Process 41.WIP=Process 41.WIP+1;
1504$         STACK,         1:Save:NEXT(1478$);

1478$         QUEUE,         Process 41.Queue;
1477$         SEIZE,         2,VA:
                             Resource 29,1:NEXT(1476$);

1476$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c3,18)),,VA:NEXT(1519$);

1519$         ASSIGN:        Process 41.WaitTime=Process 41.WaitTime + Diff.WaitTime;
1483$         TALLY:         Process 41.WaitTimePerEntity,Diff.WaitTime,1;
1485$         TALLY:         Process 41.TotalTimePerEntity,Diff.StartTime,1;
1509$         ASSIGN:        Process 41.VATime=Process 41.VATime + Diff.VATime;
1510$         TALLY:         Process 41.VATimePerEntity,Diff.VATime,1;
1475$         RELEASE:       Resource 29,1;
1524$         STACK,         1:Destroy:NEXT(1523$);

1523$         ASSIGN:        Process 41.NumberOut=Process 41.NumberOut + 1:
                             Process 41.WIP=Process 41.WIP-1:NEXT(292$);


;
;
;     Model statements for module:  Create 48
;

1526$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c3:MinutesToBaseTime(1440):NEXT(1527$);

1527$         ASSIGN:        Create for receiving a shift2 c3.NumberOut=Create for receiving a shift2 c3.NumberOut + 1
                             :NEXT(298$);


;
;
;     Model statements for module:  Decide 155
;
298$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1530$,Yes:
                             Else,1531$,Yes;
1530$         ASSIGN:        Decide 155.NumberOut True=Decide 155.NumberOut True + 1:NEXT(293$);

1531$         ASSIGN:        Decide 155.NumberOut False=Decide 155.NumberOut False + 1:NEXT(299$);


;
;
;     Model statements for module:  Assign 115
;
293$          ASSIGN:        receipta1# c3=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,77)
                             :NEXT(294$);


;
;
;     Model statements for module:  Decide 154
;
294$          BRANCH,        1:
                             If,receipta1# c3==0,295$,Yes:
                             If,receipta1# c3==1,296$,Yes:
                             Else,297$,Yes;

;
;
;     Model statements for module:  Separate 31
;
297$          DUPLICATE,     100 - 50:
                             receipta1# c3-1,1536$,50:NEXT(1535$);

1535$         ASSIGN:        Separate 31.NumberOut Orig=Separate 31.NumberOut Orig + 1:NEXT(296$);

1536$         ASSIGN:        Separate 31.NumberOut Dup=Separate 31.NumberOut Dup + 1:NEXT(296$);


;
;
;     Model statements for module:  Process 36
;
296$          ASSIGN:        Process 36.NumberIn=Process 36.NumberIn + 1:
                             Process 36.WIP=Process 36.WIP+1;
1566$         STACK,         1:Save:NEXT(1540$);

1540$         QUEUE,         Process 36.Queue;
1539$         SEIZE,         2,VA:
                             Resource 24,1:NEXT(1538$);

1538$         DELAY:         HoursToBaseTime(expo(10/receipta1# c3,13)),,VA:NEXT(1581$);

1581$         ASSIGN:        Process 36.WaitTime=Process 36.WaitTime + Diff.WaitTime;
1545$         TALLY:         Process 36.WaitTimePerEntity,Diff.WaitTime,1;
1547$         TALLY:         Process 36.TotalTimePerEntity,Diff.StartTime,1;
1571$         ASSIGN:        Process 36.VATime=Process 36.VATime + Diff.VATime;
1572$         TALLY:         Process 36.VATimePerEntity,Diff.VATime,1;
1537$         RELEASE:       Resource 24,1;
1586$         STACK,         1:Destroy:NEXT(1585$);

1585$         ASSIGN:        Process 36.NumberOut=Process 36.NumberOut + 1:
                             Process 36.WIP=Process 36.WIP-1:NEXT(290$);


;
;
;     Model statements for module:  Assign 112
;
290$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 116
;
299$          ASSIGN:        receipta2# c3=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,78)
                             :NEXT(300$);


;
;
;     Model statements for module:  Decide 156
;
300$          BRANCH,        1:
                             If,receipta2# c3==0,295$,Yes:
                             If,receipta2# c3==1,302$,Yes:
                             Else,301$,Yes;

;
;
;     Model statements for module:  Separate 32
;
301$          DUPLICATE,     100 - 50:
                             receipta2# c3-1,1592$,50:NEXT(1591$);

1591$         ASSIGN:        Separate 32.NumberOut Orig=Separate 32.NumberOut Orig + 1:NEXT(302$);

1592$         ASSIGN:        Separate 32.NumberOut Dup=Separate 32.NumberOut Dup + 1:NEXT(302$);


;
;
;     Model statements for module:  Process 37
;
302$          ASSIGN:        Process 37.NumberIn=Process 37.NumberIn + 1:
                             Process 37.WIP=Process 37.WIP+1;
1622$         STACK,         1:Save:NEXT(1596$);

1596$         QUEUE,         Process 37.Queue;
1595$         SEIZE,         2,VA:
                             Resource 25,1:NEXT(1594$);

1594$         DELAY:         HoursToBaseTime(expo(14/receipta2# c3,14)),,VA:NEXT(1637$);

1637$         ASSIGN:        Process 37.WaitTime=Process 37.WaitTime + Diff.WaitTime;
1601$         TALLY:         Process 37.WaitTimePerEntity,Diff.WaitTime,1;
1603$         TALLY:         Process 37.TotalTimePerEntity,Diff.StartTime,1;
1627$         ASSIGN:        Process 37.VATime=Process 37.VATime + Diff.VATime;
1628$         TALLY:         Process 37.VATimePerEntity,Diff.VATime,1;
1593$         RELEASE:       Resource 25,1;
1642$         STACK,         1:Destroy:NEXT(1641$);

1641$         ASSIGN:        Process 37.NumberOut=Process 37.NumberOut + 1:
                             Process 37.WIP=Process 37.WIP-1:NEXT(290$);


;
;
;     Model statements for module:  Create 49
;

1644$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c3:MinutesToBaseTime(1440):NEXT(1645$);

1645$         ASSIGN:        Create for receiving b shift2 c3.NumberOut=Create for receiving b shift2 c3.NumberOut + 1
                             :NEXT(303$);


;
;
;     Model statements for module:  Create 50
;

1648$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c3:MinutesToBaseTime(1440):NEXT(1649$);

1649$         ASSIGN:        Create for receiving c shift2 c3.NumberOut=Create for receiving c shift2 c3.NumberOut + 1
                             :NEXT(312$);


;
;
;     Model statements for module:  Create 99
;

1652$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c2:MinutesToBaseTime(1440):NEXT(1653$);

1653$         ASSIGN:        Create for receiving a shift1 c2.NumberOut=Create for receiving a shift1 c2.NumberOut + 1
                             :NEXT(268$);


;
;
;     Model statements for module:  Create 100
;

1656$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c1:MinutesToBaseTime(1440):NEXT(1657$);

1657$         ASSIGN:        Create for receiving a shift1 c1.NumberOut=Create for receiving a shift1 c1.NumberOut + 1
                             :NEXT(238$);


;
;
;     Model statements for module:  Create 103
;

1660$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c3:MinutesToBaseTime(1440):NEXT(1661$);

1661$         ASSIGN:        Create for receiving a shift1 c3.NumberOut=Create for receiving a shift1 c3.NumberOut + 1
                             :NEXT(298$);


;
;
;     Model statements for module:  Create 6
;

1664$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c1:MinutesToBaseTime(1440):NEXT(1665$);

1665$         ASSIGN:        Create for shipment b shift1 c1.NumberOut=Create for shipment b shift1 c1.NumberOut + 1:NEXT(336$);


;
;
;     Model statements for module:  Decide 104
;
336$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1668$,Yes:
                             Else,1669$,Yes;
1668$         ASSIGN:        Decide 104.NumberOut True=Decide 104.NumberOut True + 1:NEXT(337$);

1669$         ASSIGN:        Decide 104.NumberOut False=Decide 104.NumberOut False + 1:NEXT(338$);


;
;
;     Model statements for module:  Assign 72
;
337$          ASSIGN:        departureb1# c1=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,97):NEXT(339$);


;
;
;     Model statements for module:  Decide 105
;
339$          BRANCH,        1:
                             If,departureb1# c1==0,330$,Yes:
                             If,departureb1# c1==1,340$,Yes:
                             Else,341$,Yes;

;
;
;     Model statements for module:  Separate 9
;
341$          DUPLICATE,     100 - 50:
                             departureb1# c1-1,1674$,50:NEXT(1673$);

1673$         ASSIGN:        Separate 9.NumberOut Orig=Separate 9.NumberOut Orig + 1:NEXT(340$);

1674$         ASSIGN:        Separate 9.NumberOut Dup=Separate 9.NumberOut Dup + 1:NEXT(340$);


;
;
;     Model statements for module:  Process 14
;
340$          ASSIGN:        Process 14.NumberIn=Process 14.NumberIn + 1:
                             Process 14.WIP=Process 14.WIP+1;
1704$         STACK,         1:Save:NEXT(1678$);

1678$         QUEUE,         Process 14.Queue;
1677$         SEIZE,         2,VA:
                             Resource 8,1:NEXT(1676$);

1676$         DELAY:         HoursToBaseTime(expo(10/departureb1# c1,33)),,VA:NEXT(1719$);

1719$         ASSIGN:        Process 14.WaitTime=Process 14.WaitTime + Diff.WaitTime;
1683$         TALLY:         Process 14.WaitTimePerEntity,Diff.WaitTime,1;
1685$         TALLY:         Process 14.TotalTimePerEntity,Diff.StartTime,1;
1709$         ASSIGN:        Process 14.VATime=Process 14.VATime + Diff.VATime;
1710$         TALLY:         Process 14.VATimePerEntity,Diff.VATime,1;
1675$         RELEASE:       Resource 8,1;
1724$         STACK,         1:Destroy:NEXT(1723$);

1723$         ASSIGN:        Process 14.NumberOut=Process 14.NumberOut + 1:
                             Process 14.WIP=Process 14.WIP-1:NEXT(324$);


;
;
;     Model statements for module:  Assign 60
;
324$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Decide 115
;
97$           BRANCH,        1:
                             If,type==1,107$,Yes:
                             If,type==2,108$,Yes:
                             Else,109$,Yes;

;
;
;     Model statements for module:  Decide 120
;
109$          BRANCH,        1:
                             If,product3stock>=safety stock,1728$,Yes:
                             Else,1729$,Yes;
1728$         ASSIGN:        Decide 120.NumberOut True=Decide 120.NumberOut True + 1:NEXT(157$);

1729$         ASSIGN:        Decide 120.NumberOut False=Decide 120.NumberOut False + 1:NEXT(99$);

157$          COUNT:         dispatchctruck,1:NEXT(23$);


;
;
;     Model statements for module:  Assign 23
;
23$           ASSIGN:        ordersize=8:
                             shipmentqenter=tnow:NEXT(67$);

67$           ASSIGN:        product2stock=(type==2)*(product2stock-8)+(type<>2)*(product2stock-0):
                             product3stock=(type==3)*(product3stock-8)+(type<>3)*(product3stock-0):
                             product1stock=(type==1)*(product1stock-8)+(type<>1)*(product1stock-0);
105$          WRITE,         stock:
                             totalstock,
                             tnow;
111$          QUEUE,         shipmentdockqueue;
102$          SEIZE,         1,Other:
                             SELECT(S_docks,LRC,s_index),1:NEXT(103$);


;
;
;     Model statements for module:  Decide 117
;
103$          BRANCH,        1:
                             If,s_docks(s_index)==dock1,1730$,Yes:
                             Else,1731$,Yes;
1730$         ASSIGN:        Decide 117.NumberOut True=Decide 117.NumberOut True + 1:NEXT(114$);

1731$         ASSIGN:        Decide 117.NumberOut False=Decide 117.NumberOut False + 1:NEXT(173$);

114$          TALLY:         time in shipmentq at d1,tnow-shipmentqenter,1:NEXT(65$);


;
;
;     Model statements for module:  Assign 47
;
65$           ASSIGN:        dock_no=1:
                             leave the dock1 queue=tnow:NEXT(25$);

25$           DUPLICATE:     ordersize-1,24$:NEXT(24$);


;
;
;     Model statements for module:  Assign 24
;
24$           ASSIGN:        picked=0:
                             k=1:
                             totalstock=product1stock+product2stock+product3stock:
                             totalexceedingstock=stock1+stock2+stock3:NEXT(26$);

26$           WHILE:         (picked==0):NEXT(27$);


;
;
;     Model statements for module:  Decide 17
;
27$           BRANCH,        1:
                             If,( LocationA(k,1) <> 0  )  &&  ( type == LocationA(k,2) ),1732$,Yes:
                             Else,1733$,Yes;
1732$         ASSIGN:        Decide 17.NumberOut True=Decide 17.NumberOut True + 1:NEXT(28$);

1733$         ASSIGN:        Decide 17.NumberOut False=Decide 17.NumberOut False + 1:NEXT(32$);

28$           ASSIGN:        LocationA(k,1)=LocationA(k,1)-1:NEXT(29$);


;
;
;     Model statements for module:  Assign 27
;
29$           ASSIGN:        picked=1:
                             Locationtype=1:NEXT(30$);


;
;
;     Model statements for module:  Decide 18
;
30$           BRANCH,        1:
                             If,LocationA(k,1)==0,1734$,Yes:
                             Else,1735$,Yes;
1734$         ASSIGN:        Decide 18.NumberOut True=Decide 18.NumberOut True + 1:NEXT(31$);

1735$         ASSIGN:        Decide 18.NumberOut False=Decide 18.NumberOut False + 1:NEXT(62$);

31$           ASSIGN:        LocationA(k,2)=0:NEXT(62$);


;
;
;     Model statements for module:  Decide 57
;
62$           BRANCH,        1:
                             If,dock_no==1,1736$,Yes:
                             Else,1737$,Yes;
1736$         ASSIGN:        Decide 57.NumberOut True=Decide 57.NumberOut True + 1:NEXT(63$);

1737$         ASSIGN:        Decide 57.NumberOut False=Decide 57.NumberOut False + 1:NEXT(64$);


;
;
;     Model statements for module:  Assign 43
;
63$           ASSIGN:        width9=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance9=20+k*1+width9:NEXT(37$);

37$           ENDWHILE:NEXT(41$);


;
;
;     Model statements for module:  Decide 22
;
41$           BRANCH,        1:
                             If,dock_no==1,1738$,Yes:
                             Else,1739$,Yes;
1738$         ASSIGN:        Decide 22.NumberOut True=Decide 22.NumberOut True + 1:NEXT(39$);

1739$         ASSIGN:        Decide 22.NumberOut False=Decide 22.NumberOut False + 1:NEXT(49$);


;
;
;     Model statements for module:  Seize 9
;
39$           QUEUE,         Seizing a forklift from forklift set at shipment ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet3,CYC, trans_no3),1:NEXT(1741$);

1741$         DELAY:         0.0,,VA:NEXT(226$);


;
;
;     Model statements for module:  Decide 233
;
226$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1742$,Yes:
                             Else,1743$,Yes;
1742$         ASSIGN:        Decide 233.NumberOut True=Decide 233.NumberOut True + 1:NEXT(42$);

1743$         ASSIGN:        Decide 233.NumberOut False=Decide 233.NumberOut False + 1:NEXT(227$);


;
;
;     Model statements for module:  Delay 5
;
42$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance9)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance11)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance13)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance15)+NORM(0,7.3))*2)),,
                             Other:NEXT(86$);

86$           RELEASE:       Member(TransSet3, trans_no3),1;
183$          ASSIGN:        #product from d1=#product from d1+1:NEXT(128$);


;
;
;     Model statements for module:  Decide 123
;
128$          BRANCH,        1:
                             If,#product from d1==8,1744$,Yes:
                             Else,1745$,Yes;
1744$         ASSIGN:        Decide 123.NumberOut True=Decide 123.NumberOut True + 1:NEXT(161$);

1745$         ASSIGN:        Decide 123.NumberOut False=Decide 123.NumberOut False + 1:NEXT(191$);

161$          TALLY:         time for pickup to d1,tnow-leave the dock1 queue,1;
184$          ASSIGN:        #product from d1=#product from d1-#product from d1:NEXT(85$);


;
;
;     Model statements for module:  Process 5
;
85$           ASSIGN:        Loading from dock1.NumberIn=Loading from dock1.NumberIn + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP+1;
1775$         STACK,         1:Save:NEXT(1749$);

1749$         QUEUE,         Loading from dock1.Queue;
1748$         SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(1747$);

1747$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1790$);

1790$         ASSIGN:        Loading from dock1.WaitTime=Loading from dock1.WaitTime + Diff.WaitTime;
1754$         TALLY:         Loading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
1756$         TALLY:         Loading from dock1.TotalTimePerEntity,Diff.StartTime,1;
1780$         ASSIGN:        Loading from dock1.VATime=Loading from dock1.VATime + Diff.VATime;
1781$         TALLY:         Loading from dock1.VATimePerEntity,Diff.VATime,1;
1746$         RELEASE:       SELECT(TransSet4,LAST),1;
1795$         STACK,         1:Destroy:NEXT(1794$);

1794$         ASSIGN:        Loading from dock1.NumberOut=Loading from dock1.NumberOut + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP-1:NEXT(151$);

151$          ASSIGN:        #loaded1=#loaded1+1:NEXT(45$);


;
;
;     Model statements for module:  Decide 38
;
45$           BRANCH,        1:
                             If,#loaded1==ordersize,1797$,Yes:
                             Else,1798$,Yes;
1797$         ASSIGN:        Decide 38.NumberOut True=Decide 38.NumberOut True + 1:NEXT(43$);

1798$         ASSIGN:        Decide 38.NumberOut False=Decide 38.NumberOut False + 1:NEXT(44$);


;
;
;     Model statements for module:  Release 13
;
43$           RELEASE:       dock1,1:NEXT(152$);

152$          ASSIGN:        #loaded1=#loaded1-#loaded1;
163$          TALLY:         time in system from d1 for shipment,tnow-shipmentqenter,1;
168$          COUNT:         # of trucks that are in system  more than 60 minutes from d1,(tnow-shipmentqenter)>60;
178$          COUNT:         # of trucks that are in system  more than 45 minutes from d1,(tnow-shipmentqenter)>45;
169$          COUNT:         #of trucks that are from d1,1;
181$          TALLY:         time for loading at d1,tnow-starting time of loading at d1,1:NEXT(44$);


;
;
;     Model statements for module:  Dispose 13
;
44$           ASSIGN:        Dispose 13.NumberOut=Dispose 13.NumberOut + 1;
1799$         DISPOSE:       Yes;

191$          ASSIGN:        #product being loaded from d1=#product being loaded from d1+1:NEXT(193$);


;
;
;     Model statements for module:  Decide 219
;
193$          BRANCH,        1:
                             If,#product being loaded from d1==1,1800$,Yes:
                             Else,1801$,Yes;
1800$         ASSIGN:        Decide 219.NumberOut True=Decide 219.NumberOut True + 1:NEXT(192$);

1801$         ASSIGN:        Decide 219.NumberOut False=Decide 219.NumberOut False + 1:NEXT(194$);


;
;
;     Model statements for module:  Assign 177
;
192$          ASSIGN:        starting time of loading at d1=tnow:NEXT(85$);


;
;
;     Model statements for module:  Decide 220
;
194$          BRANCH,        1:
                             If,#product being loaded from d1==7,1802$,Yes:
                             Else,1803$,Yes;
1802$         ASSIGN:        Decide 220.NumberOut True=Decide 220.NumberOut True + 1:NEXT(195$);

1803$         ASSIGN:        Decide 220.NumberOut False=Decide 220.NumberOut False + 1:NEXT(85$);

195$          ASSIGN:        #product being loaded from d1=#product being loaded from d1-#product being loaded from d1:NEXT(85$);


;
;
;     Model statements for module:  Delay 17
;
227$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(86$);


;
;
;     Model statements for module:  Seize 12
;
49$           QUEUE,         Seizing a forklift from forklift set at shipment ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet6,CYC, trans_no6),1:NEXT(1805$);

1805$         DELAY:         0.0,,VA:NEXT(228$);


;
;
;     Model statements for module:  Decide 234
;
228$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1806$,Yes:
                             Else,1807$,Yes;
1806$         ASSIGN:        Decide 234.NumberOut True=Decide 234.NumberOut True + 1:NEXT(51$);

1807$         ASSIGN:        Decide 234.NumberOut False=Decide 234.NumberOut False + 1:NEXT(229$);


;
;
;     Model statements for module:  Delay 8
;
51$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance10)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance12)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance14)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance16)+NORM(0,7.3))*2)),,
                             Other:NEXT(52$);

52$           RELEASE:       Member(TransSet6, Trans_No6),1;
185$          ASSIGN:        #product from d2=#product from d2+1:NEXT(127$);


;
;
;     Model statements for module:  Decide 122
;
127$          BRANCH,        1:
                             If,#product from d2==8,1808$,Yes:
                             Else,1809$,Yes;
1808$         ASSIGN:        Decide 122.NumberOut True=Decide 122.NumberOut True + 1:NEXT(162$);

1809$         ASSIGN:        Decide 122.NumberOut False=Decide 122.NumberOut False + 1:NEXT(187$);

162$          TALLY:         time for pickup to d2,tnow-leave the dock2 queue,1;
186$          ASSIGN:        #product from d2=#product from d2-#product from d2:NEXT(76$);


;
;
;     Model statements for module:  Process 4
;
76$           ASSIGN:        Loading from dock2.NumberIn=Loading from dock2.NumberIn + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP+1;
1839$         STACK,         1:Save:NEXT(1813$);

1813$         QUEUE,         Loading from dock2.Queue;
1812$         SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(1811$);

1811$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1854$);

1854$         ASSIGN:        Loading from dock2.WaitTime=Loading from dock2.WaitTime + Diff.WaitTime;
1818$         TALLY:         Loading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
1820$         TALLY:         Loading from dock2.TotalTimePerEntity,Diff.StartTime,1;
1844$         ASSIGN:        Loading from dock2.VATime=Loading from dock2.VATime + Diff.VATime;
1845$         TALLY:         Loading from dock2.VATimePerEntity,Diff.VATime,1;
1810$         RELEASE:       SELECT(TransSet5,LAST),1;
1859$         STACK,         1:Destroy:NEXT(1858$);

1858$         ASSIGN:        Loading from dock2.NumberOut=Loading from dock2.NumberOut + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP-1:NEXT(153$);

153$          ASSIGN:        #loaded2=#loaded2+1:NEXT(46$);


;
;
;     Model statements for module:  Decide 39
;
46$           BRANCH,        1:
                             If,#loaded2==ordersize,1861$,Yes:
                             Else,1862$,Yes;
1861$         ASSIGN:        Decide 39.NumberOut True=Decide 39.NumberOut True + 1:NEXT(47$);

1862$         ASSIGN:        Decide 39.NumberOut False=Decide 39.NumberOut False + 1:NEXT(48$);


;
;
;     Model statements for module:  Release 14
;
47$           RELEASE:       dock2,1:NEXT(154$);

154$          ASSIGN:        #loaded2=#loaded2-#loaded2;
164$          TALLY:         time in system from d2 for shipment,tnow-shipmentqenter,1;
170$          COUNT:         # of trucks that are in system  more than 60 minutes from d2,(tnow-shipmentqenter)>60;
179$          COUNT:         # of trucks that are in system  more than 45 minutes from d2,(tnow-shipmentqenter)>45;
171$          COUNT:         #of trucks that are from d2,1;
182$          TALLY:         time for loading at d2,tnow-starting time of loading at d2,1:NEXT(48$);


;
;
;     Model statements for module:  Dispose 14
;
48$           ASSIGN:        Dispose 14.NumberOut=Dispose 14.NumberOut + 1;
1863$         DISPOSE:       Yes;

187$          ASSIGN:        #product being loaded from d2=#product being loaded from d2+1:NEXT(188$);


;
;
;     Model statements for module:  Decide 217
;
188$          BRANCH,        1:
                             If,#product being loaded from d2==1,1864$,Yes:
                             Else,1865$,Yes;
1864$         ASSIGN:        Decide 217.NumberOut True=Decide 217.NumberOut True + 1:NEXT(180$);

1865$         ASSIGN:        Decide 217.NumberOut False=Decide 217.NumberOut False + 1:NEXT(189$);


;
;
;     Model statements for module:  Assign 176
;
180$          ASSIGN:        starting time of loading at d2=tnow:NEXT(76$);


;
;
;     Model statements for module:  Decide 218
;
189$          BRANCH,        1:
                             If,#product being loaded from d2==7,1866$,Yes:
                             Else,1867$,Yes;
1866$         ASSIGN:        Decide 218.NumberOut True=Decide 218.NumberOut True + 1:NEXT(190$);

1867$         ASSIGN:        Decide 218.NumberOut False=Decide 218.NumberOut False + 1:NEXT(76$);

190$          ASSIGN:        #product being loaded from d2=#product being loaded from d2-#product being loaded from d2:NEXT(76$);


;
;
;     Model statements for module:  Delay 21
;
229$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(52$);


;
;
;     Model statements for module:  Assign 44
;
64$           ASSIGN:        width10=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance10=23+k*1+width10:NEXT(37$);


;
;
;     Model statements for module:  Decide 19
;
32$           BRANCH,        1:
                             If,( LocationB(k,1) <> 0 )  &&  ( type == LocationB(k,2) ),1868$,Yes:
                             Else,1869$,Yes;
1868$         ASSIGN:        Decide 19.NumberOut True=Decide 19.NumberOut True + 1:NEXT(33$);

1869$         ASSIGN:        Decide 19.NumberOut False=Decide 19.NumberOut False + 1:NEXT(77$);

33$           ASSIGN:        LocationB(k,1)=LocationB(k,1)-1:NEXT(34$);


;
;
;     Model statements for module:  Assign 30
;
34$           ASSIGN:        picked=1:
                             Locationtype=2:NEXT(35$);


;
;
;     Model statements for module:  Decide 21
;
35$           BRANCH,        1:
                             If,LocationB(k,1)==0,1870$,Yes:
                             Else,1871$,Yes;
1870$         ASSIGN:        Decide 21.NumberOut True=Decide 21.NumberOut True + 1:NEXT(36$);

1871$         ASSIGN:        Decide 21.NumberOut False=Decide 21.NumberOut False + 1:NEXT(204$);

36$           ASSIGN:        LocationB(k,2)=0:NEXT(204$);


;
;
;     Model statements for module:  Decide 225
;
204$          BRANCH,        1:
                             If,dock_no==1,1872$,Yes:
                             Else,1873$,Yes;
1872$         ASSIGN:        Decide 225.NumberOut True=Decide 225.NumberOut True + 1:NEXT(205$);

1873$         ASSIGN:        Decide 225.NumberOut False=Decide 225.NumberOut False + 1:NEXT(206$);


;
;
;     Model statements for module:  Assign 191
;
205$          ASSIGN:        width11=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance11=20+k*1+width11:NEXT(37$);


;
;
;     Model statements for module:  Assign 192
;
206$          ASSIGN:        width12=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance12=23+k*1+width12:NEXT(37$);


;
;
;     Model statements for module:  Decide 82
;
77$           BRANCH,        1:
                             If,( LocationC(k,1) <> 0 )  &&  ( type == LocationC(k,2) ),1874$,Yes:
                             Else,1875$,Yes;
1874$         ASSIGN:        Decide 82.NumberOut True=Decide 82.NumberOut True + 1:NEXT(78$);

1875$         ASSIGN:        Decide 82.NumberOut False=Decide 82.NumberOut False + 1:NEXT(92$);

78$           ASSIGN:        LocationC(k,1)=LocationC(k,1)-1:NEXT(79$);


;
;
;     Model statements for module:  Assign 53
;
79$           ASSIGN:        picked=1:
                             Locationtype=3:NEXT(80$);


;
;
;     Model statements for module:  Decide 83
;
80$           BRANCH,        1:
                             If,LocationC(k,1)==0,1876$,Yes:
                             Else,1877$,Yes;
1876$         ASSIGN:        Decide 83.NumberOut True=Decide 83.NumberOut True + 1:NEXT(81$);

1877$         ASSIGN:        Decide 83.NumberOut False=Decide 83.NumberOut False + 1:NEXT(82$);

81$           ASSIGN:        LocationC(k,2)=0:NEXT(82$);


;
;
;     Model statements for module:  Decide 84
;
82$           BRANCH,        1:
                             If,dock_no==1,1878$,Yes:
                             Else,1879$,Yes;
1878$         ASSIGN:        Decide 84.NumberOut True=Decide 84.NumberOut True + 1:NEXT(83$);

1879$         ASSIGN:        Decide 84.NumberOut False=Decide 84.NumberOut False + 1:NEXT(84$);


;
;
;     Model statements for module:  Assign 55
;
83$           ASSIGN:        width13=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance13=13+k*1+width13:NEXT(37$);


;
;
;     Model statements for module:  Assign 56
;
84$           ASSIGN:        width14=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance14=14+k*1+width14:NEXT(37$);


;
;
;     Model statements for module:  Decide 111
;
92$           BRANCH,        1:
                             If,( LocationD(k,1) <> 0 )  &&  ( type == LocationD(k,2) ),1880$,Yes:
                             Else,1881$,Yes;
1880$         ASSIGN:        Decide 111.NumberOut True=Decide 111.NumberOut True + 1:NEXT(93$);

1881$         ASSIGN:        Decide 111.NumberOut False=Decide 111.NumberOut False + 1:NEXT(38$);

93$           ASSIGN:        LocationD(k,1)=LocationD(k,1)-1:NEXT(94$);


;
;
;     Model statements for module:  Assign 77
;
94$           ASSIGN:        picked=1:
                             Locationtype=4:NEXT(95$);


;
;
;     Model statements for module:  Decide 112
;
95$           BRANCH,        1:
                             If,LocationD(k,1)==0,1882$,Yes:
                             Else,1883$,Yes;
1882$         ASSIGN:        Decide 112.NumberOut True=Decide 112.NumberOut True + 1:NEXT(96$);

1883$         ASSIGN:        Decide 112.NumberOut False=Decide 112.NumberOut False + 1:NEXT(207$);

96$           ASSIGN:        LocationD(k,2)=0:NEXT(207$);


;
;
;     Model statements for module:  Decide 226
;
207$          BRANCH,        1:
                             If,dock_no==1,1884$,Yes:
                             Else,1885$,Yes;
1884$         ASSIGN:        Decide 226.NumberOut True=Decide 226.NumberOut True + 1:NEXT(208$);

1885$         ASSIGN:        Decide 226.NumberOut False=Decide 226.NumberOut False + 1:NEXT(209$);


;
;
;     Model statements for module:  Assign 193
;
208$          ASSIGN:        width15=
                             (LocationD(k,1)==7)*0+(LocationD(k,1)==6)*1+(LocationD(k,1)==5)*2+(LocationD(k,1)==4)*3+(LocationD(k,1)==3)*4+(LocationD(k,1)==2)*5+(LocationD(k,1)==1)*6+(LocationD(k,1)==0)*7:
                             distance15=13+k*1+width15:NEXT(37$);


;
;
;     Model statements for module:  Assign 194
;
209$          ASSIGN:        width16=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance16=14+k*1+width16:NEXT(37$);


;
;
;     Model statements for module:  Assign 32
;
38$           ASSIGN:        k=k+1:NEXT(220$);


;
;
;     Model statements for module:  Decide 231
;
220$          BRANCH,        1:
                             If,k<=231,1886$,Yes:
                             Else,1887$,Yes;
1886$         ASSIGN:        Decide 231.NumberOut True=Decide 231.NumberOut True + 1:NEXT(37$);

1887$         ASSIGN:        Decide 231.NumberOut False=Decide 231.NumberOut False + 1:NEXT(225$);


;
;
;     Model statements for module:  Assign 197
;
225$          ASSIGN:        departure from stock exceeded=1:NEXT(221$);


;
;
;     Model statements for module:  Decide 232
;
221$          BRANCH,        1:
                             If,type==1,222$,Yes:
                             If,type==2,223$,Yes:
                             Else,224$,Yes;
224$          ASSIGN:        stock3=stock3-1:NEXT(41$);

222$          ASSIGN:        stock1=stock1-1:NEXT(41$);

223$          ASSIGN:        stock2=stock2-1:NEXT(41$);

173$          TALLY:         time in shipmentq at d2,tnow-shipmentqenter,1:NEXT(66$);


;
;
;     Model statements for module:  Assign 48
;
66$           ASSIGN:        dock_no=2:
                             leave the dock2 queue=tnow:NEXT(25$);


;
;
;     Model statements for module:  Record 32
;
99$           COUNT:         #runaway,1:NEXT(98$);


;
;
;     Model statements for module:  Dispose 21
;
98$           ASSIGN:        Dispose 21.NumberOut=Dispose 21.NumberOut + 1;
1890$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Decide 118
;
107$          BRANCH,        1:
                             If,product1stock>=safety stock,1891$,Yes:
                             Else,1892$,Yes;
1891$         ASSIGN:        Decide 118.NumberOut True=Decide 118.NumberOut True + 1:NEXT(155$);

1892$         ASSIGN:        Decide 118.NumberOut False=Decide 118.NumberOut False + 1:NEXT(99$);

155$          COUNT:         dispatchatruck,1:NEXT(23$);


;
;
;     Model statements for module:  Decide 119
;
108$          BRANCH,        1:
                             If,product2stock>=safety stock,1893$,Yes:
                             Else,1894$,Yes;
1893$         ASSIGN:        Decide 119.NumberOut True=Decide 119.NumberOut True + 1:NEXT(156$);

1894$         ASSIGN:        Decide 119.NumberOut False=Decide 119.NumberOut False + 1:NEXT(99$);

156$          COUNT:         dispatchbtruck,1:NEXT(23$);


;
;
;     Model statements for module:  Dispose 20
;
330$          ASSIGN:        Dispose 20.NumberOut=Dispose 20.NumberOut + 1;
1895$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 73
;
338$          ASSIGN:        departureb2# c1=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,98)
                             :NEXT(342$);


;
;
;     Model statements for module:  Decide 106
;
342$          BRANCH,        1:
                             If,departureb2# c1==0,330$,Yes:
                             If,departureb2# c1==1,343$,Yes:
                             Else,344$,Yes;

;
;
;     Model statements for module:  Separate 10
;
344$          DUPLICATE,     100 - 50:
                             departureb2# c1-1,1900$,50:NEXT(1899$);

1899$         ASSIGN:        Separate 10.NumberOut Orig=Separate 10.NumberOut Orig + 1:NEXT(343$);

1900$         ASSIGN:        Separate 10.NumberOut Dup=Separate 10.NumberOut Dup + 1:NEXT(343$);


;
;
;     Model statements for module:  Process 15
;
343$          ASSIGN:        Process 15.NumberIn=Process 15.NumberIn + 1:
                             Process 15.WIP=Process 15.WIP+1;
1930$         STACK,         1:Save:NEXT(1904$);

1904$         QUEUE,         Process 15.Queue;
1903$         SEIZE,         2,VA:
                             Resource 9,1:NEXT(1902$);

1902$         DELAY:         HoursToBaseTime(expo(14/departureb2# c1,34)),,VA:NEXT(1945$);

1945$         ASSIGN:        Process 15.WaitTime=Process 15.WaitTime + Diff.WaitTime;
1909$         TALLY:         Process 15.WaitTimePerEntity,Diff.WaitTime,1;
1911$         TALLY:         Process 15.TotalTimePerEntity,Diff.StartTime,1;
1935$         ASSIGN:        Process 15.VATime=Process 15.VATime + Diff.VATime;
1936$         TALLY:         Process 15.VATimePerEntity,Diff.VATime,1;
1901$         RELEASE:       Resource 9,1;
1950$         STACK,         1:Destroy:NEXT(1949$);

1949$         ASSIGN:        Process 15.NumberOut=Process 15.NumberOut + 1:
                             Process 15.WIP=Process 15.WIP-1:NEXT(324$);


;
;
;     Model statements for module:  Create 7
;

1952$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c1:MinutesToBaseTime(1440):NEXT(1953$);

1953$         ASSIGN:        Create for shipment c shift1 c1.NumberOut=Create for shipment c shift1 c1.NumberOut + 1:NEXT(345$);


;
;
;     Model statements for module:  Decide 107
;
345$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1956$,Yes:
                             Else,1957$,Yes;
1956$         ASSIGN:        Decide 107.NumberOut True=Decide 107.NumberOut True + 1:NEXT(346$);

1957$         ASSIGN:        Decide 107.NumberOut False=Decide 107.NumberOut False + 1:NEXT(347$);


;
;
;     Model statements for module:  Assign 74
;
346$          ASSIGN:        departurec1# c1=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,99):NEXT(348$);


;
;
;     Model statements for module:  Decide 108
;
348$          BRANCH,        1:
                             If,departurec1# c1==0,330$,Yes:
                             If,departurec1# c1==1,349$,Yes:
                             Else,350$,Yes;

;
;
;     Model statements for module:  Separate 11
;
350$          DUPLICATE,     100 - 50:
                             departurec1# c1-1,1962$,50:NEXT(1961$);

1961$         ASSIGN:        Separate 11.NumberOut Orig=Separate 11.NumberOut Orig + 1:NEXT(349$);

1962$         ASSIGN:        Separate 11.NumberOut Dup=Separate 11.NumberOut Dup + 1:NEXT(349$);


;
;
;     Model statements for module:  Process 16
;
349$          ASSIGN:        Process 16.NumberIn=Process 16.NumberIn + 1:
                             Process 16.WIP=Process 16.WIP+1;
1992$         STACK,         1:Save:NEXT(1966$);

1966$         QUEUE,         Process 16.Queue;
1965$         SEIZE,         2,VA:
                             Resource 10,1:NEXT(1964$);

1964$         DELAY:         HoursToBaseTime(expo(10/departurec1# c1,35)),,VA:NEXT(2007$);

2007$         ASSIGN:        Process 16.WaitTime=Process 16.WaitTime + Diff.WaitTime;
1971$         TALLY:         Process 16.WaitTimePerEntity,Diff.WaitTime,1;
1973$         TALLY:         Process 16.TotalTimePerEntity,Diff.StartTime,1;
1997$         ASSIGN:        Process 16.VATime=Process 16.VATime + Diff.VATime;
1998$         TALLY:         Process 16.VATimePerEntity,Diff.VATime,1;
1963$         RELEASE:       Resource 10,1;
2012$         STACK,         1:Destroy:NEXT(2011$);

2011$         ASSIGN:        Process 16.NumberOut=Process 16.NumberOut + 1:
                             Process 16.WIP=Process 16.WIP-1:NEXT(325$);


;
;
;     Model statements for module:  Assign 61
;
325$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 75
;
347$          ASSIGN:        departurec2# c1=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,100):NEXT(351$);


;
;
;     Model statements for module:  Decide 109
;
351$          BRANCH,        1:
                             If,departurec2# c1==0,330$,Yes:
                             If,departurec2# c1==1,352$,Yes:
                             Else,353$,Yes;

;
;
;     Model statements for module:  Separate 12
;
353$          DUPLICATE,     100 - 50:
                             departurec2# c1-1,2018$,50:NEXT(2017$);

2017$         ASSIGN:        Separate 12.NumberOut Orig=Separate 12.NumberOut Orig + 1:NEXT(352$);

2018$         ASSIGN:        Separate 12.NumberOut Dup=Separate 12.NumberOut Dup + 1:NEXT(352$);


;
;
;     Model statements for module:  Process 17
;
352$          ASSIGN:        Process 17.NumberIn=Process 17.NumberIn + 1:
                             Process 17.WIP=Process 17.WIP+1;
2048$         STACK,         1:Save:NEXT(2022$);

2022$         QUEUE,         Process 17.Queue;
2021$         SEIZE,         2,VA:
                             Resource 11,1:NEXT(2020$);

2020$         DELAY:         HoursToBaseTime(expo(14/departurec2# c1,36)),,VA:NEXT(2063$);

2063$         ASSIGN:        Process 17.WaitTime=Process 17.WaitTime + Diff.WaitTime;
2027$         TALLY:         Process 17.WaitTimePerEntity,Diff.WaitTime,1;
2029$         TALLY:         Process 17.TotalTimePerEntity,Diff.StartTime,1;
2053$         ASSIGN:        Process 17.VATime=Process 17.VATime + Diff.VATime;
2054$         TALLY:         Process 17.VATimePerEntity,Diff.VATime,1;
2019$         RELEASE:       Resource 11,1;
2068$         STACK,         1:Destroy:NEXT(2067$);

2067$         ASSIGN:        Process 17.NumberOut=Process 17.NumberOut + 1:
                             Process 17.WIP=Process 17.WIP-1:NEXT(325$);


;
;
;     Model statements for module:  Create 15
;

2070$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c1:MinutesToBaseTime(1440):NEXT(2071$);

2071$         ASSIGN:        Create for shipmenta shift2 c1.NumberOut=Create for shipmenta shift2 c1.NumberOut + 1:NEXT(327$);


;
;
;     Model statements for module:  Decide 95
;
327$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2074$,Yes:
                             Else,2075$,Yes;
2074$         ASSIGN:        Decide 95.NumberOut True=Decide 95.NumberOut True + 1:NEXT(326$);

2075$         ASSIGN:        Decide 95.NumberOut False=Decide 95.NumberOut False + 1:NEXT(328$);


;
;
;     Model statements for module:  Assign 66
;
326$          ASSIGN:        departurea1# c1=disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,95)
                             :NEXT(329$);


;
;
;     Model statements for module:  Decide 96
;
329$          BRANCH,        1:
                             If,departurea1# c1==0,330$,Yes:
                             If,departurea1# c1==1,331$,Yes:
                             Else,332$,Yes;

;
;
;     Model statements for module:  Separate 3
;
332$          DUPLICATE,     100 - 50:
                             departurea1# c1-1,2080$,50:NEXT(2079$);

2079$         ASSIGN:        Separate 3.NumberOut Orig=Separate 3.NumberOut Orig + 1:NEXT(331$);

2080$         ASSIGN:        Separate 3.NumberOut Dup=Separate 3.NumberOut Dup + 1:NEXT(331$);


;
;
;     Model statements for module:  Process 7
;
331$          ASSIGN:        Process 7.NumberIn=Process 7.NumberIn + 1:
                             Process 7.WIP=Process 7.WIP+1;
2110$         STACK,         1:Save:NEXT(2084$);

2084$         QUEUE,         Process 7.Queue;
2083$         SEIZE,         2,VA:
                             Resource 3,1:NEXT(2082$);

2082$         DELAY:         HoursToBaseTime(expo(10/departurea1# c1,31)),,VA:NEXT(2125$);

2125$         ASSIGN:        Process 7.WaitTime=Process 7.WaitTime + Diff.WaitTime;
2089$         TALLY:         Process 7.WaitTimePerEntity,Diff.WaitTime,1;
2091$         TALLY:         Process 7.TotalTimePerEntity,Diff.StartTime,1;
2115$         ASSIGN:        Process 7.VATime=Process 7.VATime + Diff.VATime;
2116$         TALLY:         Process 7.VATimePerEntity,Diff.VATime,1;
2081$         RELEASE:       Resource 3,1;
2130$         STACK,         1:Destroy:NEXT(2129$);

2129$         ASSIGN:        Process 7.NumberOut=Process 7.NumberOut + 1:
                             Process 7.WIP=Process 7.WIP-1:NEXT(323$);


;
;
;     Model statements for module:  Assign 59
;
323$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 67
;
328$          ASSIGN:        departurea2# c1=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,96):NEXT(333$);


;
;
;     Model statements for module:  Decide 97
;
333$          BRANCH,        1:
                             If,departurea2# c1==0,330$,Yes:
                             If,departurea2# c1==1,335$,Yes:
                             Else,334$,Yes;

;
;
;     Model statements for module:  Separate 4
;
334$          DUPLICATE,     100 - 50:
                             departurea2# c1-1,2136$,50:NEXT(2135$);

2135$         ASSIGN:        Separate 4.NumberOut Orig=Separate 4.NumberOut Orig + 1:NEXT(335$);

2136$         ASSIGN:        Separate 4.NumberOut Dup=Separate 4.NumberOut Dup + 1:NEXT(335$);


;
;
;     Model statements for module:  Process 9
;
335$          ASSIGN:        Process 9.NumberIn=Process 9.NumberIn + 1:
                             Process 9.WIP=Process 9.WIP+1;
2166$         STACK,         1:Save:NEXT(2140$);

2140$         QUEUE,         Process 9.Queue;
2139$         SEIZE,         2,VA:
                             Resource 4,1:NEXT(2138$);

2138$         DELAY:         HoursToBaseTime(expo(14/departurea2# c1,32)),,VA:NEXT(2181$);

2181$         ASSIGN:        Process 9.WaitTime=Process 9.WaitTime + Diff.WaitTime;
2145$         TALLY:         Process 9.WaitTimePerEntity,Diff.WaitTime,1;
2147$         TALLY:         Process 9.TotalTimePerEntity,Diff.StartTime,1;
2171$         ASSIGN:        Process 9.VATime=Process 9.VATime + Diff.VATime;
2172$         TALLY:         Process 9.VATimePerEntity,Diff.VATime,1;
2137$         RELEASE:       Resource 4,1;
2186$         STACK,         1:Destroy:NEXT(2185$);

2185$         ASSIGN:        Process 9.NumberOut=Process 9.NumberOut + 1:
                             Process 9.WIP=Process 9.WIP-1:NEXT(323$);


;
;
;     Model statements for module:  Create 19
;

2188$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c1:MinutesToBaseTime(1440):NEXT(2189$);

2189$         ASSIGN:        Create for shipment b shift2 c1.NumberOut=Create for shipment b shift2 c1.NumberOut + 1:NEXT(336$);


;
;
;     Model statements for module:  Create 39
;

2192$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c2:MinutesToBaseTime(1440):NEXT(2193$);

2193$         ASSIGN:        Create for shipment b shift1 c2.NumberOut=Create for shipment b shift1 c2.NumberOut + 1:NEXT(367$);


;
;
;     Model statements for module:  Decide 145
;
367$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2196$,Yes:
                             Else,2197$,Yes;
2196$         ASSIGN:        Decide 145.NumberOut True=Decide 145.NumberOut True + 1:NEXT(368$);

2197$         ASSIGN:        Decide 145.NumberOut False=Decide 145.NumberOut False + 1:NEXT(369$);


;
;
;     Model statements for module:  Assign 105
;
368$          ASSIGN:        departureb1# c2=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,103):NEXT(370$);


;
;
;     Model statements for module:  Decide 146
;
370$          BRANCH,        1:
                             If,departureb1# c2==0,361$,Yes:
                             If,departureb1# c2==1,371$,Yes:
                             Else,372$,Yes;

;
;
;     Model statements for module:  Separate 27
;
372$          DUPLICATE,     100 - 50:
                             departureb1# c2-1,2202$,50:NEXT(2201$);

2201$         ASSIGN:        Separate 27.NumberOut Orig=Separate 27.NumberOut Orig + 1:NEXT(371$);

2202$         ASSIGN:        Separate 27.NumberOut Dup=Separate 27.NumberOut Dup + 1:NEXT(371$);


;
;
;     Model statements for module:  Process 32
;
371$          ASSIGN:        Process 32.NumberIn=Process 32.NumberIn + 1:
                             Process 32.WIP=Process 32.WIP+1;
2232$         STACK,         1:Save:NEXT(2206$);

2206$         QUEUE,         Process 32.Queue;
2205$         SEIZE,         2,VA:
                             Resource 20,1:NEXT(2204$);

2204$         DELAY:         HoursToBaseTime(expo(10/departureb1# c2,39)),,VA:NEXT(2247$);

2247$         ASSIGN:        Process 32.WaitTime=Process 32.WaitTime + Diff.WaitTime;
2211$         TALLY:         Process 32.WaitTimePerEntity,Diff.WaitTime,1;
2213$         TALLY:         Process 32.TotalTimePerEntity,Diff.StartTime,1;
2237$         ASSIGN:        Process 32.VATime=Process 32.VATime + Diff.VATime;
2238$         TALLY:         Process 32.VATimePerEntity,Diff.VATime,1;
2203$         RELEASE:       Resource 20,1;
2252$         STACK,         1:Destroy:NEXT(2251$);

2251$         ASSIGN:        Process 32.NumberOut=Process 32.NumberOut + 1:
                             Process 32.WIP=Process 32.WIP-1:NEXT(355$);


;
;
;     Model statements for module:  Assign 101
;
355$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Dispose 24
;
361$          ASSIGN:        Dispose 24.NumberOut=Dispose 24.NumberOut + 1;
2254$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 106
;
369$          ASSIGN:        departureb2# c2=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,104)
                             :NEXT(373$);


;
;
;     Model statements for module:  Decide 147
;
373$          BRANCH,        1:
                             If,departureb2# c2==0,361$,Yes:
                             If,departureb2# c2==1,374$,Yes:
                             Else,375$,Yes;

;
;
;     Model statements for module:  Separate 28
;
375$          DUPLICATE,     100 - 50:
                             departureb2# c2-1,2259$,50:NEXT(2258$);

2258$         ASSIGN:        Separate 28.NumberOut Orig=Separate 28.NumberOut Orig + 1:NEXT(374$);

2259$         ASSIGN:        Separate 28.NumberOut Dup=Separate 28.NumberOut Dup + 1:NEXT(374$);


;
;
;     Model statements for module:  Process 33
;
374$          ASSIGN:        Process 33.NumberIn=Process 33.NumberIn + 1:
                             Process 33.WIP=Process 33.WIP+1;
2289$         STACK,         1:Save:NEXT(2263$);

2263$         QUEUE,         Process 33.Queue;
2262$         SEIZE,         2,VA:
                             Resource 21,1:NEXT(2261$);

2261$         DELAY:         HoursToBaseTime(expo(14/departureb2# c2,40)),,VA:NEXT(2304$);

2304$         ASSIGN:        Process 33.WaitTime=Process 33.WaitTime + Diff.WaitTime;
2268$         TALLY:         Process 33.WaitTimePerEntity,Diff.WaitTime,1;
2270$         TALLY:         Process 33.TotalTimePerEntity,Diff.StartTime,1;
2294$         ASSIGN:        Process 33.VATime=Process 33.VATime + Diff.VATime;
2295$         TALLY:         Process 33.VATimePerEntity,Diff.VATime,1;
2260$         RELEASE:       Resource 21,1;
2309$         STACK,         1:Destroy:NEXT(2308$);

2308$         ASSIGN:        Process 33.NumberOut=Process 33.NumberOut + 1:
                             Process 33.WIP=Process 33.WIP-1:NEXT(355$);


;
;
;     Model statements for module:  Create 40
;

2311$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c2:MinutesToBaseTime(1440):NEXT(2312$);

2312$         ASSIGN:        Create for shipment c shift1 c2.NumberOut=Create for shipment c shift1 c2.NumberOut + 1:NEXT(376$);


;
;
;     Model statements for module:  Decide 148
;
376$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2315$,Yes:
                             Else,2316$,Yes;
2315$         ASSIGN:        Decide 148.NumberOut True=Decide 148.NumberOut True + 1:NEXT(377$);

2316$         ASSIGN:        Decide 148.NumberOut False=Decide 148.NumberOut False + 1:NEXT(378$);


;
;
;     Model statements for module:  Assign 107
;
377$          ASSIGN:        departurec1# c2=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,105):NEXT(379$);


;
;
;     Model statements for module:  Decide 149
;
379$          BRANCH,        1:
                             If,departurec1# c2==0,361$,Yes:
                             If,departurec1# c2==1,380$,Yes:
                             Else,381$,Yes;

;
;
;     Model statements for module:  Separate 29
;
381$          DUPLICATE,     100 - 50:
                             departurec1# c2-1,2321$,50:NEXT(2320$);

2320$         ASSIGN:        Separate 29.NumberOut Orig=Separate 29.NumberOut Orig + 1:NEXT(380$);

2321$         ASSIGN:        Separate 29.NumberOut Dup=Separate 29.NumberOut Dup + 1:NEXT(380$);


;
;
;     Model statements for module:  Process 34
;
380$          ASSIGN:        Process 34.NumberIn=Process 34.NumberIn + 1:
                             Process 34.WIP=Process 34.WIP+1;
2351$         STACK,         1:Save:NEXT(2325$);

2325$         QUEUE,         Process 34.Queue;
2324$         SEIZE,         2,VA:
                             Resource 22,1:NEXT(2323$);

2323$         DELAY:         HoursToBaseTime(expo(10/departurec1# c2,41)),,VA:NEXT(2366$);

2366$         ASSIGN:        Process 34.WaitTime=Process 34.WaitTime + Diff.WaitTime;
2330$         TALLY:         Process 34.WaitTimePerEntity,Diff.WaitTime,1;
2332$         TALLY:         Process 34.TotalTimePerEntity,Diff.StartTime,1;
2356$         ASSIGN:        Process 34.VATime=Process 34.VATime + Diff.VATime;
2357$         TALLY:         Process 34.VATimePerEntity,Diff.VATime,1;
2322$         RELEASE:       Resource 22,1;
2371$         STACK,         1:Destroy:NEXT(2370$);

2370$         ASSIGN:        Process 34.NumberOut=Process 34.NumberOut + 1:
                             Process 34.WIP=Process 34.WIP-1:NEXT(356$);


;
;
;     Model statements for module:  Assign 102
;
356$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 108
;
378$          ASSIGN:        departurec2# c2=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,106):NEXT(382$);


;
;
;     Model statements for module:  Decide 150
;
382$          BRANCH,        1:
                             If,departurec2# c2==0,361$,Yes:
                             If,departurec2# c2==1,383$,Yes:
                             Else,384$,Yes;

;
;
;     Model statements for module:  Separate 30
;
384$          DUPLICATE,     100 - 50:
                             departurec2# c2-1,2377$,50:NEXT(2376$);

2376$         ASSIGN:        Separate 30.NumberOut Orig=Separate 30.NumberOut Orig + 1:NEXT(383$);

2377$         ASSIGN:        Separate 30.NumberOut Dup=Separate 30.NumberOut Dup + 1:NEXT(383$);


;
;
;     Model statements for module:  Process 35
;
383$          ASSIGN:        Process 35.NumberIn=Process 35.NumberIn + 1:
                             Process 35.WIP=Process 35.WIP+1;
2407$         STACK,         1:Save:NEXT(2381$);

2381$         QUEUE,         Process 35.Queue;
2380$         SEIZE,         2,VA:
                             Resource 23,1:NEXT(2379$);

2379$         DELAY:         HoursToBaseTime(expo(14/departurec2# c2,42)),,VA:NEXT(2422$);

2422$         ASSIGN:        Process 35.WaitTime=Process 35.WaitTime + Diff.WaitTime;
2386$         TALLY:         Process 35.WaitTimePerEntity,Diff.WaitTime,1;
2388$         TALLY:         Process 35.TotalTimePerEntity,Diff.StartTime,1;
2412$         ASSIGN:        Process 35.VATime=Process 35.VATime + Diff.VATime;
2413$         TALLY:         Process 35.VATimePerEntity,Diff.VATime,1;
2378$         RELEASE:       Resource 23,1;
2427$         STACK,         1:Destroy:NEXT(2426$);

2426$         ASSIGN:        Process 35.NumberOut=Process 35.NumberOut + 1:
                             Process 35.WIP=Process 35.WIP-1:NEXT(356$);


;
;
;     Model statements for module:  Create 42
;

2429$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c2:MinutesToBaseTime(1440):NEXT(2430$);

2430$         ASSIGN:        Create for shipmenta shift2 c2.NumberOut=Create for shipmenta shift2 c2.NumberOut + 1:NEXT(358$);


;
;
;     Model statements for module:  Decide 142
;
358$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2433$,Yes:
                             Else,2434$,Yes;
2433$         ASSIGN:        Decide 142.NumberOut True=Decide 142.NumberOut True + 1:NEXT(357$);

2434$         ASSIGN:        Decide 142.NumberOut False=Decide 142.NumberOut False + 1:NEXT(359$);


;
;
;     Model statements for module:  Assign 103
;
357$          ASSIGN:        departurea1# c2=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,101):NEXT(360$);


;
;
;     Model statements for module:  Decide 143
;
360$          BRANCH,        1:
                             If,departurea1# c2==0,361$,Yes:
                             If,departurea1# c2==1,362$,Yes:
                             Else,363$,Yes;

;
;
;     Model statements for module:  Separate 25
;
363$          DUPLICATE,     100 - 50:
                             departurea1# c2-1,2439$,50:NEXT(2438$);

2438$         ASSIGN:        Separate 25.NumberOut Orig=Separate 25.NumberOut Orig + 1:NEXT(362$);

2439$         ASSIGN:        Separate 25.NumberOut Dup=Separate 25.NumberOut Dup + 1:NEXT(362$);


;
;
;     Model statements for module:  Process 30
;
362$          ASSIGN:        Process 30.NumberIn=Process 30.NumberIn + 1:
                             Process 30.WIP=Process 30.WIP+1;
2469$         STACK,         1:Save:NEXT(2443$);

2443$         QUEUE,         Process 30.Queue;
2442$         SEIZE,         2,VA:
                             Resource 18,1:NEXT(2441$);

2441$         DELAY:         HoursToBaseTime(expo(10/departurea1# c2,37)),,VA:NEXT(2484$);

2484$         ASSIGN:        Process 30.WaitTime=Process 30.WaitTime + Diff.WaitTime;
2448$         TALLY:         Process 30.WaitTimePerEntity,Diff.WaitTime,1;
2450$         TALLY:         Process 30.TotalTimePerEntity,Diff.StartTime,1;
2474$         ASSIGN:        Process 30.VATime=Process 30.VATime + Diff.VATime;
2475$         TALLY:         Process 30.VATimePerEntity,Diff.VATime,1;
2440$         RELEASE:       Resource 18,1;
2489$         STACK,         1:Destroy:NEXT(2488$);

2488$         ASSIGN:        Process 30.NumberOut=Process 30.NumberOut + 1:
                             Process 30.WIP=Process 30.WIP-1:NEXT(354$);


;
;
;     Model statements for module:  Assign 100
;
354$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 104
;
359$          ASSIGN:        departurea2# c2=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,102):NEXT(364$);


;
;
;     Model statements for module:  Decide 144
;
364$          BRANCH,        1:
                             If,departurea2# c2==0,361$,Yes:
                             If,departurea2# c2==1,366$,Yes:
                             Else,365$,Yes;

;
;
;     Model statements for module:  Separate 26
;
365$          DUPLICATE,     100 - 50:
                             departurea2# c2-1,2495$,50:NEXT(2494$);

2494$         ASSIGN:        Separate 26.NumberOut Orig=Separate 26.NumberOut Orig + 1:NEXT(366$);

2495$         ASSIGN:        Separate 26.NumberOut Dup=Separate 26.NumberOut Dup + 1:NEXT(366$);


;
;
;     Model statements for module:  Process 31
;
366$          ASSIGN:        Process 31.NumberIn=Process 31.NumberIn + 1:
                             Process 31.WIP=Process 31.WIP+1;
2525$         STACK,         1:Save:NEXT(2499$);

2499$         QUEUE,         Process 31.Queue;
2498$         SEIZE,         2,VA:
                             Resource 19,1:NEXT(2497$);

2497$         DELAY:         HoursToBaseTime(expo(14/departurea2# c2,38)),,VA:NEXT(2540$);

2540$         ASSIGN:        Process 31.WaitTime=Process 31.WaitTime + Diff.WaitTime;
2504$         TALLY:         Process 31.WaitTimePerEntity,Diff.WaitTime,1;
2506$         TALLY:         Process 31.TotalTimePerEntity,Diff.StartTime,1;
2530$         ASSIGN:        Process 31.VATime=Process 31.VATime + Diff.VATime;
2531$         TALLY:         Process 31.VATimePerEntity,Diff.VATime,1;
2496$         RELEASE:       Resource 19,1;
2545$         STACK,         1:Destroy:NEXT(2544$);

2544$         ASSIGN:        Process 31.NumberOut=Process 31.NumberOut + 1:
                             Process 31.WIP=Process 31.WIP-1:NEXT(354$);


;
;
;     Model statements for module:  Create 43
;

2547$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c2:MinutesToBaseTime(1440):NEXT(2548$);

2548$         ASSIGN:        Create for shipment b shift2 c2.NumberOut=Create for shipment b shift2 c2.NumberOut + 1:NEXT(367$);


;
;
;     Model statements for module:  Create 54
;

2551$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c3:MinutesToBaseTime(1440):NEXT(2552$);

2552$         ASSIGN:        Create for shipment b shift1 c3.NumberOut=Create for shipment b shift1 c3.NumberOut + 1:NEXT(398$);


;
;
;     Model statements for module:  Decide 166
;
398$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2555$,Yes:
                             Else,2556$,Yes;
2555$         ASSIGN:        Decide 166.NumberOut True=Decide 166.NumberOut True + 1:NEXT(399$);

2556$         ASSIGN:        Decide 166.NumberOut False=Decide 166.NumberOut False + 1:NEXT(400$);


;
;
;     Model statements for module:  Assign 126
;
399$          ASSIGN:        departureb1# c3=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,109):NEXT(401$);


;
;
;     Model statements for module:  Decide 167
;
401$          BRANCH,        1:
                             If,departureb1# c3==0,392$,Yes:
                             If,departureb1# c3==1,402$,Yes:
                             Else,403$,Yes;

;
;
;     Model statements for module:  Separate 39
;
403$          DUPLICATE,     100 - 50:
                             departureb1# c3-1,2561$,50:NEXT(2560$);

2560$         ASSIGN:        Separate 39.NumberOut Orig=Separate 39.NumberOut Orig + 1:NEXT(402$);

2561$         ASSIGN:        Separate 39.NumberOut Dup=Separate 39.NumberOut Dup + 1:NEXT(402$);


;
;
;     Model statements for module:  Process 44
;
402$          ASSIGN:        Process 44.NumberIn=Process 44.NumberIn + 1:
                             Process 44.WIP=Process 44.WIP+1;
2591$         STACK,         1:Save:NEXT(2565$);

2565$         QUEUE,         Process 44.Queue;
2564$         SEIZE,         2,VA:
                             Resource 32,1:NEXT(2563$);

2563$         DELAY:         HoursToBaseTime(expo(10/departureb1# c3,45)),,VA:NEXT(2606$);

2606$         ASSIGN:        Process 44.WaitTime=Process 44.WaitTime + Diff.WaitTime;
2570$         TALLY:         Process 44.WaitTimePerEntity,Diff.WaitTime,1;
2572$         TALLY:         Process 44.TotalTimePerEntity,Diff.StartTime,1;
2596$         ASSIGN:        Process 44.VATime=Process 44.VATime + Diff.VATime;
2597$         TALLY:         Process 44.VATimePerEntity,Diff.VATime,1;
2562$         RELEASE:       Resource 32,1;
2611$         STACK,         1:Destroy:NEXT(2610$);

2610$         ASSIGN:        Process 44.NumberOut=Process 44.NumberOut + 1:
                             Process 44.WIP=Process 44.WIP-1:NEXT(386$);


;
;
;     Model statements for module:  Assign 122
;
386$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Dispose 26
;
392$          ASSIGN:        Dispose 26.NumberOut=Dispose 26.NumberOut + 1;
2613$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 127
;
400$          ASSIGN:        departureb2# c3=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,110)
                             :NEXT(404$);


;
;
;     Model statements for module:  Decide 168
;
404$          BRANCH,        1:
                             If,departureb2# c3==0,392$,Yes:
                             If,departureb2# c3==1,405$,Yes:
                             Else,406$,Yes;

;
;
;     Model statements for module:  Separate 40
;
406$          DUPLICATE,     100 - 50:
                             departureb2# c3-1,2618$,50:NEXT(2617$);

2617$         ASSIGN:        Separate 40.NumberOut Orig=Separate 40.NumberOut Orig + 1:NEXT(405$);

2618$         ASSIGN:        Separate 40.NumberOut Dup=Separate 40.NumberOut Dup + 1:NEXT(405$);


;
;
;     Model statements for module:  Process 45
;
405$          ASSIGN:        Process 45.NumberIn=Process 45.NumberIn + 1:
                             Process 45.WIP=Process 45.WIP+1;
2648$         STACK,         1:Save:NEXT(2622$);

2622$         QUEUE,         Process 45.Queue;
2621$         SEIZE,         2,VA:
                             Resource 33,1:NEXT(2620$);

2620$         DELAY:         HoursToBaseTime(expo(14/departureb2# c3,46)),,VA:NEXT(2663$);

2663$         ASSIGN:        Process 45.WaitTime=Process 45.WaitTime + Diff.WaitTime;
2627$         TALLY:         Process 45.WaitTimePerEntity,Diff.WaitTime,1;
2629$         TALLY:         Process 45.TotalTimePerEntity,Diff.StartTime,1;
2653$         ASSIGN:        Process 45.VATime=Process 45.VATime + Diff.VATime;
2654$         TALLY:         Process 45.VATimePerEntity,Diff.VATime,1;
2619$         RELEASE:       Resource 33,1;
2668$         STACK,         1:Destroy:NEXT(2667$);

2667$         ASSIGN:        Process 45.NumberOut=Process 45.NumberOut + 1:
                             Process 45.WIP=Process 45.WIP-1:NEXT(386$);


;
;
;     Model statements for module:  Create 55
;

2670$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c3:MinutesToBaseTime(1440):NEXT(2671$);

2671$         ASSIGN:        Create for shipment c shift1 c3.NumberOut=Create for shipment c shift1 c3.NumberOut + 1:NEXT(407$);


;
;
;     Model statements for module:  Decide 169
;
407$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2674$,Yes:
                             Else,2675$,Yes;
2674$         ASSIGN:        Decide 169.NumberOut True=Decide 169.NumberOut True + 1:NEXT(408$);

2675$         ASSIGN:        Decide 169.NumberOut False=Decide 169.NumberOut False + 1:NEXT(409$);


;
;
;     Model statements for module:  Assign 128
;
408$          ASSIGN:        departurec1# c3=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,111):NEXT(410$);


;
;
;     Model statements for module:  Decide 170
;
410$          BRANCH,        1:
                             If,departurec1# c3==0,392$,Yes:
                             If,departurec1# c3==1,411$,Yes:
                             Else,412$,Yes;

;
;
;     Model statements for module:  Separate 41
;
412$          DUPLICATE,     100 - 50:
                             departurec1# c3-1,2680$,50:NEXT(2679$);

2679$         ASSIGN:        Separate 41.NumberOut Orig=Separate 41.NumberOut Orig + 1:NEXT(411$);

2680$         ASSIGN:        Separate 41.NumberOut Dup=Separate 41.NumberOut Dup + 1:NEXT(411$);


;
;
;     Model statements for module:  Process 46
;
411$          ASSIGN:        Process 46.NumberIn=Process 46.NumberIn + 1:
                             Process 46.WIP=Process 46.WIP+1;
2710$         STACK,         1:Save:NEXT(2684$);

2684$         QUEUE,         Process 46.Queue;
2683$         SEIZE,         2,VA:
                             Resource 34,1:NEXT(2682$);

2682$         DELAY:         HoursToBaseTime(expo(10/departurec1# c3,47)),,VA:NEXT(2725$);

2725$         ASSIGN:        Process 46.WaitTime=Process 46.WaitTime + Diff.WaitTime;
2689$         TALLY:         Process 46.WaitTimePerEntity,Diff.WaitTime,1;
2691$         TALLY:         Process 46.TotalTimePerEntity,Diff.StartTime,1;
2715$         ASSIGN:        Process 46.VATime=Process 46.VATime + Diff.VATime;
2716$         TALLY:         Process 46.VATimePerEntity,Diff.VATime,1;
2681$         RELEASE:       Resource 34,1;
2730$         STACK,         1:Destroy:NEXT(2729$);

2729$         ASSIGN:        Process 46.NumberOut=Process 46.NumberOut + 1:
                             Process 46.WIP=Process 46.WIP-1:NEXT(387$);


;
;
;     Model statements for module:  Assign 123
;
387$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 129
;
409$          ASSIGN:        departurec2# c3=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,112):NEXT(413$);


;
;
;     Model statements for module:  Decide 171
;
413$          BRANCH,        1:
                             If,departurec2# c3==0,392$,Yes:
                             If,departurec2# c3==1,414$,Yes:
                             Else,415$,Yes;

;
;
;     Model statements for module:  Separate 42
;
415$          DUPLICATE,     100 - 50:
                             departurec2# c3-1,2736$,50:NEXT(2735$);

2735$         ASSIGN:        Separate 42.NumberOut Orig=Separate 42.NumberOut Orig + 1:NEXT(414$);

2736$         ASSIGN:        Separate 42.NumberOut Dup=Separate 42.NumberOut Dup + 1:NEXT(414$);


;
;
;     Model statements for module:  Process 47
;
414$          ASSIGN:        Process 47.NumberIn=Process 47.NumberIn + 1:
                             Process 47.WIP=Process 47.WIP+1;
2766$         STACK,         1:Save:NEXT(2740$);

2740$         QUEUE,         Process 47.Queue;
2739$         SEIZE,         2,VA:
                             Resource 35,1:NEXT(2738$);

2738$         DELAY:         HoursToBaseTime(expo(14/departurec2# c3,48)),,VA:NEXT(2781$);

2781$         ASSIGN:        Process 47.WaitTime=Process 47.WaitTime + Diff.WaitTime;
2745$         TALLY:         Process 47.WaitTimePerEntity,Diff.WaitTime,1;
2747$         TALLY:         Process 47.TotalTimePerEntity,Diff.StartTime,1;
2771$         ASSIGN:        Process 47.VATime=Process 47.VATime + Diff.VATime;
2772$         TALLY:         Process 47.VATimePerEntity,Diff.VATime,1;
2737$         RELEASE:       Resource 35,1;
2786$         STACK,         1:Destroy:NEXT(2785$);

2785$         ASSIGN:        Process 47.NumberOut=Process 47.NumberOut + 1:
                             Process 47.WIP=Process 47.WIP-1:NEXT(387$);


;
;
;     Model statements for module:  Create 57
;

2788$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c3:MinutesToBaseTime(1440):NEXT(2789$);

2789$         ASSIGN:        Create for shipmenta shift2 c3.NumberOut=Create for shipmenta shift2 c3.NumberOut + 1:NEXT(389$);


;
;
;     Model statements for module:  Decide 163
;
389$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2792$,Yes:
                             Else,2793$,Yes;
2792$         ASSIGN:        Decide 163.NumberOut True=Decide 163.NumberOut True + 1:NEXT(388$);

2793$         ASSIGN:        Decide 163.NumberOut False=Decide 163.NumberOut False + 1:NEXT(390$);


;
;
;     Model statements for module:  Assign 124
;
388$          ASSIGN:        departurea1# c3=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,107):NEXT(391$);


;
;
;     Model statements for module:  Decide 164
;
391$          BRANCH,        1:
                             If,departurea1# c3==0,392$,Yes:
                             If,departurea1# c3==1,393$,Yes:
                             Else,394$,Yes;

;
;
;     Model statements for module:  Separate 37
;
394$          DUPLICATE,     100 - 50:
                             departurea1# c3-1,2798$,50:NEXT(2797$);

2797$         ASSIGN:        Separate 37.NumberOut Orig=Separate 37.NumberOut Orig + 1:NEXT(393$);

2798$         ASSIGN:        Separate 37.NumberOut Dup=Separate 37.NumberOut Dup + 1:NEXT(393$);


;
;
;     Model statements for module:  Process 42
;
393$          ASSIGN:        Process 42.NumberIn=Process 42.NumberIn + 1:
                             Process 42.WIP=Process 42.WIP+1;
2828$         STACK,         1:Save:NEXT(2802$);

2802$         QUEUE,         Process 42.Queue;
2801$         SEIZE,         2,VA:
                             Resource 30,1:NEXT(2800$);

2800$         DELAY:         HoursToBaseTime(expo(10/departurea1# c3,43)),,VA:NEXT(2843$);

2843$         ASSIGN:        Process 42.WaitTime=Process 42.WaitTime + Diff.WaitTime;
2807$         TALLY:         Process 42.WaitTimePerEntity,Diff.WaitTime,1;
2809$         TALLY:         Process 42.TotalTimePerEntity,Diff.StartTime,1;
2833$         ASSIGN:        Process 42.VATime=Process 42.VATime + Diff.VATime;
2834$         TALLY:         Process 42.VATimePerEntity,Diff.VATime,1;
2799$         RELEASE:       Resource 30,1;
2848$         STACK,         1:Destroy:NEXT(2847$);

2847$         ASSIGN:        Process 42.NumberOut=Process 42.NumberOut + 1:
                             Process 42.WIP=Process 42.WIP-1:NEXT(385$);


;
;
;     Model statements for module:  Assign 121
;
385$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 125
;
390$          ASSIGN:        departurea2# c3=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,108):NEXT(395$);


;
;
;     Model statements for module:  Decide 165
;
395$          BRANCH,        1:
                             If,departurea2# c3==0,392$,Yes:
                             If,departurea2# c3==1,397$,Yes:
                             Else,396$,Yes;

;
;
;     Model statements for module:  Separate 38
;
396$          DUPLICATE,     100 - 50:
                             departurea2# c3-1,2854$,50:NEXT(2853$);

2853$         ASSIGN:        Separate 38.NumberOut Orig=Separate 38.NumberOut Orig + 1:NEXT(397$);

2854$         ASSIGN:        Separate 38.NumberOut Dup=Separate 38.NumberOut Dup + 1:NEXT(397$);


;
;
;     Model statements for module:  Process 43
;
397$          ASSIGN:        Process 43.NumberIn=Process 43.NumberIn + 1:
                             Process 43.WIP=Process 43.WIP+1;
2884$         STACK,         1:Save:NEXT(2858$);

2858$         QUEUE,         Process 43.Queue;
2857$         SEIZE,         2,VA:
                             Resource 31,1:NEXT(2856$);

2856$         DELAY:         HoursToBaseTime(expo(14/departurea2# c3,44)),,VA:NEXT(2899$);

2899$         ASSIGN:        Process 43.WaitTime=Process 43.WaitTime + Diff.WaitTime;
2863$         TALLY:         Process 43.WaitTimePerEntity,Diff.WaitTime,1;
2865$         TALLY:         Process 43.TotalTimePerEntity,Diff.StartTime,1;
2889$         ASSIGN:        Process 43.VATime=Process 43.VATime + Diff.VATime;
2890$         TALLY:         Process 43.VATimePerEntity,Diff.VATime,1;
2855$         RELEASE:       Resource 31,1;
2904$         STACK,         1:Destroy:NEXT(2903$);

2903$         ASSIGN:        Process 43.NumberOut=Process 43.NumberOut + 1:
                             Process 43.WIP=Process 43.WIP-1:NEXT(385$);


;
;
;     Model statements for module:  Create 58
;

2906$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c3:MinutesToBaseTime(1440):NEXT(2907$);

2907$         ASSIGN:        Create for shipment b shift2 c3.NumberOut=Create for shipment b shift2 c3.NumberOut + 1:NEXT(398$);


;
;
;     Model statements for module:  Create 101
;

2910$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c1:MinutesToBaseTime(1440):NEXT(2911$);

2911$         ASSIGN:        Create for shipmenta shift1 c1.NumberOut=Create for shipmenta shift1 c1.NumberOut + 1:NEXT(327$);


;
;
;     Model statements for module:  Create 102
;

2914$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c2:MinutesToBaseTime(1440):NEXT(2915$);

2915$         ASSIGN:        Create for shipmenta shift1 c2.NumberOut=Create for shipmenta shift1 c2.NumberOut + 1:NEXT(358$);


;
;
;     Model statements for module:  Create 104
;

2918$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c3:MinutesToBaseTime(1440):NEXT(2919$);

2919$         ASSIGN:        Create for shipmenta shift1 c3.NumberOut=Create for shipmenta shift1 c3.NumberOut + 1:NEXT(389$);


;
;
;     Model statements for module:  Create 109
;

2922$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c1:MinutesToBaseTime(1440):NEXT(2923$);

2923$         ASSIGN:        Create for shipment c shift2 c1.NumberOut=Create for shipment c shift2 c1.NumberOut + 1:NEXT(345$);


;
;
;     Model statements for module:  Create 110
;

2926$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c2:MinutesToBaseTime(1440):NEXT(2927$);

2927$         ASSIGN:        Create for shipment c shift2 c2.NumberOut=Create for shipment c shift2 c2.NumberOut + 1:NEXT(376$);


;
;
;     Model statements for module:  Create 111
;

2930$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c3:MinutesToBaseTime(1440):NEXT(2931$);

2931$         ASSIGN:        Create for shipment c shift2 c3.NumberOut=Create for shipment c shift2 c3.NumberOut + 1:NEXT(407$);









